Class Types.ArrayType

  • All Implemented Interfaces:
    Type
    Enclosing class:
    Types


    public static class Types.ArrayType
    extends Object
    implements Type
    Array type.
    • Field Detail

      • componentType

        private final Type componentType
      • componentIsNullable

        private final boolean componentIsNullable
      • maximumCardinality

        private final long maximumCardinality
    • Constructor Detail

      • ArrayType

        public ArrayType​(Type componentType,
                         boolean componentIsNullable,
                         long maximumCardinality)
      • ArrayType

        public ArrayType​(Type componentType)
    • Method Detail

      • getComponentType

        public 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.