Examples of EnumTypeHandler


Examples of org.terasology.persistence.typeHandling.coreTypes.EnumTypeHandler

            logger.error("Unabled to get class from type {}", genericType);
            return null;
        }

        if (Enum.class.isAssignableFrom(typeClass)) {
            return new EnumTypeHandler(typeClass);
        } else if (List.class.isAssignableFrom(typeClass)) {
            // For lists, createEntityRef the handler for the contained type and wrap in a list type handler
            Type parameter = ReflectionUtil.getTypeParameter(genericType, 0);
            if (parameter != null) {
                TypeHandler<?> innerHandler = getHandlerFor(parameter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.