public final class MapType extends AbstractMapType
Note: This map type is designed for working with proto maps or ES6 Maps.
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyType.Kind| Modifier and Type | Field and Description |
|---|---|
static MapType |
ANY_MAP |
static MapType |
EMPTY_MAP |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
SoyType |
getKeyType()
Returns the type for keys of this map.
|
SoyType.Kind |
getKind()
Returns what kind of type this is.
|
SoyType |
getValueType()
Returns the type for values in this map.
|
int |
hashCode() |
boolean |
isAssignableFrom(SoyType srcType)
Returns true if a parameter or field of this type can be assigned from a value of
srcType. |
static MapType |
of(SoyType keyType,
SoyType valueType) |
String |
toString() |
public static final MapType EMPTY_MAP
public static final MapType ANY_MAP
public SoyType.Kind getKind()
SoyTypepublic SoyType getKeyType()
AbstractMapTypegetKeyType in class AbstractMapTypepublic SoyType getValueType()
AbstractMapTypegetValueType in class AbstractMapTypepublic boolean isAssignableFrom(SoyType srcType)
SoyTypesrcType.srcType - The type of the incoming value.