All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cassandraunit.type.GenericTypeEnum Maven / Gradle / Ivy

There is a newer version: 4.3.1.0
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy