Class PrimitiveClassTypeInfo

All Implemented Interfaces:
TypeInfo

public class PrimitiveClassTypeInfo extends ClassTypeInfo
  • Constructor Details

    • PrimitiveClassTypeInfo

      public PrimitiveClassTypeInfo(Class<?> type, Object defaultValue)
  • Method Details

    • is

      public boolean is(Class<?> c)
      Specified by:
      is in interface TypeInfo
      Overrides:
      is in class ClassTypeInfo
      Returns:
      true if this TypeInfo represents the same class as the Class parameter, false otherwise
    • isPrimitive

      public boolean isPrimitive()
      See Also:
    • createDefaultValue

      public Object createDefaultValue()
    • isVoid

      public boolean isVoid()
      Returns:
      true if this TypeInfo represents Void class or void class
    • isBoolean

      public boolean isBoolean()
      Returns:
      true if this TypeInfo represents Boolean class or boolean class
    • isNumber

      public boolean isNumber()
      Returns:
      true if this TypeInfo represents a type assignable to Number class
      See Also:
    • isByte

      public boolean isByte()
      Returns:
      true if this TypeInfo represents Byte class or byte class
    • isShort

      public boolean isShort()
      Returns:
      true if this TypeInfo represents Short class or short class
    • isInt

      public boolean isInt()
      Returns:
      true if this TypeInfo represents Integer class or int class
    • isLong

      public boolean isLong()
      Returns:
      true if this TypeInfo represents Long class or long class
    • isFloat

      public boolean isFloat()
      Returns:
      true if this TypeInfo represents Float class or float class
    • isDouble

      public boolean isDouble()
      Returns:
      true if this TypeInfo represents Double class or double class
    • isCharacter

      public boolean isCharacter()
      Returns:
      true if this TypeInfo represents Character class or char class
    • isAssignableFrom

      public boolean isAssignableFrom(TypeInfo another)
      Returns:
      true if the caller TypeInfo represents the super class of the class represented by another TypeInfo
      See Also: