org.cassandraunit.type.GenericTypeEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-unit-shaded Show documentation
Show all versions of cassandra-unit-shaded Show documentation
Shaded version of cassandra-unit
package org.cassandraunit.type;
/**
* @author Jeremy Sevellec
*/
public enum GenericTypeEnum {
ASCII_TYPE("AsciiType"), BOOLEAN_TYPE("BooleanType"), BYTES_TYPE("BytesType"), COUNTER_TYPE("CounterColumnType"),
DATE_TYPE("DateType"), DOUBLE_TYPE("DoubleType"), FLOAT_TYPE("FloatType"), INTEGER_TYPE("IntegerType"),
LEXICAL_UUID_TYPE("LexicalUUIDType"), LONG_TYPE("LongType"), TIME_UUID_TYPE("TimeUUIDType"),
UTF_8_TYPE("UTF8Type"), UUID_TYPE("UUIDType"), COMPOSITE_TYPE("CompositeType");
private final String value;
GenericTypeEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static GenericTypeEnum fromValue(String v) {
for (GenericTypeEnum c : GenericTypeEnum.values()) {
if (c.value.equalsIgnoreCase(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
@Override
public String toString() {
return value;
}
}