Class Types.ArrayType

  • All Implemented Interfaces:
    java.lang.reflect.Type
    Enclosing class:
    Types

    public static class Types.ArrayType
    extends java.lang.Object
    implements java.lang.reflect.Type
    Array type.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayType​(java.lang.reflect.Type componentType)  
      ArrayType​(java.lang.reflect.Type componentType, boolean componentIsNullable, long maximumCardinality)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean componentIsNullable()
      Returns whether elements in the array may be null.
      java.lang.reflect.Type getComponentType()
      Returns the type of elements in the array.
      long maximumCardinality()
      Returns the maximum cardinality; -1 if there is no maximum.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.Type

        getTypeName
    • Field Detail

      • componentType

        private final java.lang.reflect.Type componentType
      • componentIsNullable

        private final boolean componentIsNullable
      • maximumCardinality

        private final long maximumCardinality
    • Constructor Detail

      • ArrayType

        public ArrayType​(java.lang.reflect.Type componentType,
                         boolean componentIsNullable,
                         long maximumCardinality)
      • ArrayType

        public ArrayType​(java.lang.reflect.Type componentType)
    • Method Detail

      • getComponentType

        public java.lang.reflect.Type getComponentType()
        Returns the type of elements in the array.
      • componentIsNullable

        public boolean componentIsNullable()
        Returns whether elements in the array may be null.
      • maximumCardinality

        public long maximumCardinality()
        Returns the maximum cardinality; -1 if there is no maximum.