public class TypeMap
extends java.lang.Object
| Constructor and Description |
|---|
TypeMap(java.lang.Class... types)
Constructor for TypeMap that takes in an initial set of types.
|
TypeMap(int initialSize)
Constructor for TypeMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Class... types)
Adds an array of types to the receiver at once.
|
void |
add(java.lang.Class type)
Adds a type to the receiver and stores it keyed by both its full
and short names.
|
boolean |
contains(java.lang.Class type)
Returns whether the type is known to the receiver.
|
boolean |
contains(java.lang.String typeName)
Returns whether the typeName is known to the receiver.
|
java.lang.Class |
typeFor(java.lang.String typeName)
Returns the type for the typeName specified.
|
public TypeMap(int initialSize)
initialSize - intpublic TypeMap(java.lang.Class... types)
types - Class[]public void add(java.lang.Class type)
type - Classpublic boolean contains(java.lang.Class type)
type - Classpublic boolean contains(java.lang.String typeName)
typeName - Stringpublic java.lang.Class typeFor(java.lang.String typeName)
typeName - Stringpublic void add(java.lang.Class... types)
types - Class[]