Enum ValueCodex.Type

    • Method Detail

      • values

        public static ValueCodex.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ValueCodex.Type c : ValueCodex.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueCodex.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • canUpcast

        public boolean canUpcast​(java.lang.Object value)
        Determines whether or not the Type can handle the given value via upcasting semantics.
        Parameters:
        value - a value Object
      • decode

        public abstract java.lang.Object decode​(java.lang.Class<?> clazz,
                                                Splittable value)
      • encode

        public abstract Splittable encode​(java.lang.Object value)
      • getDefaultValue

        public java.lang.Object getDefaultValue()
      • getPrimitiveType

        public java.lang.Class<?> getPrimitiveType()
      • getType

        public java.lang.Class<?> getType()