Class ShortPrimitiveType

  • All Implemented Interfaces:
    DataType<java.lang.Short>

    @Service(DataType.class)
    public class ShortPrimitiveType
    extends ShortType
    Datatype for the primitive type short.
    • Constructor Detail

      • ShortPrimitiveType

        public ShortPrimitiveType()
    • Method Detail

      • getJavaType

        public java.lang.String getJavaType()
        Description copied from interface: DataType
        Gets the name of the Java type.
        Specified by:
        getJavaType in interface DataType<java.lang.Short>
        Overrides:
        getJavaType in class ShortType
        Returns:
        the type
      • isPrimitive

        public boolean isPrimitive()
        Description copied from interface: DataType
        Returns whether type is a primitive.
        Specified by:
        isPrimitive in interface DataType<java.lang.Short>
        Overrides:
        isPrimitive in class AbstractDataType<java.lang.Short>
        Returns:
        true if primitive
      • toNonPrimitive

        public DataType<?> toNonPrimitive()
        Description copied from interface: DataType
        Gets the non-primitive type if this is a primitive.
        Specified by:
        toNonPrimitive in interface DataType<java.lang.Short>
        Overrides:
        toNonPrimitive in class AbstractDataType<java.lang.Short>
        Returns:
        the non-primitive type, this type if it is already a non-primitive