public class TemplateTypeMap
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
TemplateTypeMap |
copyWithExtension(com.google.common.collect.ImmutableList<TemplateType> keys,
com.google.common.collect.ImmutableList<JSType> values)
Create a new map in which the keys and values have been extended by
keys and values respectively. |
TemplateTypeMap |
copyWithExtension(TemplateTypeMap extension)
Create a new map in which the keys and values have been extended by
extension. |
JSType |
getResolvedTemplateType(TemplateType key)
Returns the JSType value associated with the specified template key.
|
com.google.common.collect.ImmutableList<TemplateType> |
getTemplateKeys()
Returns a list of all template keys.
|
TemplateType |
getTemplateTypeKeyByName(java.lang.String keyName) |
com.google.common.collect.ImmutableList<JSType> |
getTemplateValues() |
boolean |
hasTemplateKey(TemplateType templateKey)
Returns true if this map contains the specified template key, false
otherwise.
|
boolean |
hasTemplateType(TemplateType key)
Returns true if there is a JSType value associated with the specified
template key; false otherwise.
|
boolean |
isEmpty()
Returns true if the map is empty; false otherwise.
|
int |
size() |
java.lang.String |
toString() |
public TemplateTypeMap copyWithExtension(TemplateTypeMap extension)
extension.
Before extension, any unfilled values in the initial map will be filled with `?`.
public TemplateTypeMap copyWithExtension(com.google.common.collect.ImmutableList<TemplateType> keys, com.google.common.collect.ImmutableList<JSType> values)
keys and values respectively.
Before extension, any unfilled values in the initial map will be filled with `?`.
public int size()
public boolean isEmpty()
public com.google.common.collect.ImmutableList<TemplateType> getTemplateKeys()
public com.google.common.collect.ImmutableList<JSType> getTemplateValues()
public boolean hasTemplateKey(TemplateType templateKey)
public boolean hasTemplateType(TemplateType key)
public TemplateType getTemplateTypeKeyByName(java.lang.String keyName)
public JSType getResolvedTemplateType(TemplateType key)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2020 Google. All Rights Reserved.