public class SmallTagMap extends java.lang.Object implements java.lang.Iterable<Tag>
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()
Returns the
Set of tags. |
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.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean containsKey(java.lang.String k)
public boolean isEmpty()
public int size()
public java.util.Set<Tag> tagSet()
Set
of tags.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object