public static class SmallTagMap.Builder
extends java.lang.Object
Constructor and Description |
---|
SmallTagMap.Builder(int size)
Create a new builder with the specified capacity.
|
Modifier and Type | Method and Description |
---|---|
SmallTagMap.Builder |
add(Tag tag)
Adds a new tag to this builder.
|
SmallTagMap.Builder |
addAll(java.lang.Iterable<Tag> tags)
Adds all tags from the
Iterable tags to this builder. |
boolean |
isEmpty()
True if this builder does not have any tags added to it.
|
SmallTagMap |
result()
Get the resulting SmallTagMap.
|
int |
size()
Get the number of entries in this map..
|
public SmallTagMap.Builder(int size)
size
- Size of the underlying array.public int size()
public boolean isEmpty()
public SmallTagMap.Builder add(Tag tag)
public SmallTagMap.Builder addAll(java.lang.Iterable<Tag> tags)
Iterable
tags to this builder.public SmallTagMap result()