public static class Types.MapType 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 |
equals(java.lang.Object o) |
int |
hashCode() |
Type |
keyType() |
Type.Name |
name() |
static Types.MapType |
of(Type keyType,
Type valueType,
boolean valueNullable)
Create a new
Types.MapType with the given key type, value type and whether the value is
nullable |
java.lang.String |
simpleString() |
static Types.MapType |
valueNotNull(Type keyType,
Type valueType)
Create a new
Types.MapType with the given key type, value type and the value is not
nullable. |
boolean |
valueNullable() |
static Types.MapType |
valueNullable(Type keyType,
Type valueType)
Create a new
Types.MapType with the given key type, value type and the value is nullable. |
Type |
valueType() |
public static Types.MapType valueNullable(Type keyType, Type valueType)
Types.MapType
with the given key type, value type and the value is nullable.keyType
- The key type of the map.valueType
- The value type of the map.Types.MapType
instance.public static Types.MapType valueNotNull(Type keyType, Type valueType)
Types.MapType
with the given key type, value type and the value is not
nullable.keyType
- The key type of the map.valueType
- The value type of the map.Types.MapType
instance.public static Types.MapType of(Type keyType, Type valueType, boolean valueNullable)
Types.MapType
with the given key type, value type and whether the value is
nullablekeyType
- The key type of the map.valueType
- The value type of the map.valueNullable
- Whether the value of the map is nullable.Types.MapType
instance.public Type.Name name()
public Type keyType()
public Type valueType()
public boolean valueNullable()
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