public final class LegacyObjectMapType extends AbstractMapType
Note: This map type does not interoperate with proto maps or ES6 Maps. We are introducing a second map type to handle these cases. We intend to migrate everyone to the new map type and eventually delete LegacyObjectMapType. See b/69046114.
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyType.Kind| Modifier and Type | Field and Description |
|---|---|
static LegacyObjectMapType |
ANY_MAP |
static LegacyObjectMapType |
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 LegacyObjectMapType |
of(SoyType keyType,
SoyType valueType) |
String |
toString() |
public static final LegacyObjectMapType EMPTY_MAP
public static final LegacyObjectMapType ANY_MAP
public static LegacyObjectMapType of(SoyType keyType, SoyType valueType)
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.