| Modifier and Type | Class and Description |
|---|---|
static class |
SmallTagMap.Builder
Helper class to build the immutable map.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
INITIAL_TAG_SIZE
Initial size for the map.
|
static int |
MAX_TAGS
Max number of tags supported in a tag map.
|
| Modifier and Type | Method and Description |
|---|---|
static SmallTagMap.Builder |
builder()
Return a new builder to assist in creating a new SmallTagMap using the default tag size (8).
|
boolean |
containsKey(java.lang.String k)
Returns true whether this map contains a Tag with the given key.
|
boolean |
equals(java.lang.Object obj) |
Tag |
get(java.lang.String key)
Get the tag associated with a given key.
|
int |
hashCode() |
boolean |
isEmpty()
Returns true if this map has no entries.
|
java.util.Iterator<Tag> |
iterator() |
int |
size()
Returns the number of Tags stored in this map.
|
java.util.Set<Tag> |
tagSet()
Deprecated.
This method will be removed in the next version. This is an expensive method
and not in the spirit of this class which is to be more efficient than the standard
collections library.
|
java.lang.String |
toString() |
public static final int MAX_TAGS
public static final int INITIAL_TAG_SIZE
public static SmallTagMap.Builder builder()
public java.util.Iterator<Tag> iterator()
iterator in interface java.lang.Iterable<Tag>public Tag get(java.lang.String key)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean containsKey(java.lang.String k)
public boolean isEmpty()
public int size()
@Deprecated public java.util.Set<Tag> tagSet()
Set of tags.public boolean equals(java.lang.Object obj)
equals in class java.lang.Object