Class LongPrimitiveType

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

    @Service(DataType.class)
    public class LongPrimitiveType
    extends LongType
    Datatype for the primitive type long.
    • Constructor Detail

      • LongPrimitiveType

        public LongPrimitiveType()
    • 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.Long>
        Overrides:
        getJavaType in class LongType
        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.Long>
        Overrides:
        isPrimitive in class AbstractDataType<java.lang.Long>
        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.Long>
        Overrides:
        toNonPrimitive in class AbstractDataType<java.lang.Long>
        Returns:
        the non-primitive type, this type if it is already a non-primitive