public static class Types.ListType extends Type.ComplexType
Type.ComplexType, Type.DateTimeType, Type.FractionType, Type.IntegralType, Type.IntervalType, Type.Name, Type.NumericType, Type.PrimitiveType
Modifier and Type | Method and Description |
---|---|
boolean |
elementNullable() |
Type |
elementType() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
Type.Name |
name() |
static Types.ListType |
notNull(Type elementType)
Create a new
Types.ListType with the given element type. |
static Types.ListType |
nullable(Type elementType)
Create a new
Types.ListType with the given element type and the type is nullable. |
static Types.ListType |
of(Type elementType,
boolean elementNullable)
Create a new
Types.ListType with the given element type and whether the element is
nullable. |
java.lang.String |
simpleString() |
public static Types.ListType nullable(Type elementType)
Types.ListType
with the given element type and the type is nullable.elementType
- The element type of the list.Types.ListType
instance.public static Types.ListType notNull(Type elementType)
Types.ListType
with the given element type.elementType
- The element type of the list.Types.ListType
instance.public static Types.ListType of(Type elementType, boolean elementNullable)
Types.ListType
with the given element type and whether the element is
nullable.elementType
- The element type of the list.elementNullable
- Whether the element of the list is nullable.Types.ListType
instance.public Type elementType()
public boolean elementNullable()
public Type.Name name()
public java.lang.String simpleString()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object