com.vwo.CampaignUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vwo-java-sdk Show documentation
Show all versions of vwo-java-sdk Show documentation
Java library to initiate VWo instance for server side a/b testing
package com.vwo;
import com.vwo.models.Campaign;
import com.vwo.models.Variation;
public class CampaignUtils {
public static Variation getVariationObjectFromCampaign(Campaign campaign, String variationName) {
if (variationName != null) {
for (Variation variation : campaign.getVariations()) {
if (variation.getName().equalsIgnoreCase(variationName)) {
return variation;
}
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy