TestandTargetConversionStyle.java
858 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.day.cq.analytics.testandtarget.impl;
import java.util.Locale;
public enum TestandTargetConversionStyle {
CLICKTHROUGH,
NAME;
private TestandTargetConversionStyle() {
}
public static TestandTargetConversionStyle fromString(String value) {
if (value == null) {
throw new IllegalArgumentException("value may not be null");
}
value = value.toLowerCase(Locale.ENGLISH);
for (TestandTargetConversionStyle style : TestandTargetConversionStyle.values()) {
if (!style.toString().toLowerCase(Locale.ENGLISH).equals(value)) continue;
return style;
}
throw new IllegalArgumentException("Unable to get a " + TestandTargetConversionStyle.class.getSimpleName() + " from string value '" + value + "'");
}
}