Class BooleanPrimitiveType

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

    @Service(DataType.class)
    public class BooleanPrimitiveType
    extends BooleanType
    Datatype for the primitive type boolean.
    • Constructor Detail

      • BooleanPrimitiveType

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