protected static class KeyedItem.Usage extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
hadEmpty |
private boolean |
hadKeys |
java.util.SortedSet<java.lang.String> |
values
A set of values that were used for this key.
|
Modifier | Constructor and Description |
---|---|
protected |
Usage() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFirst()
Get the first value available.
|
boolean |
hadKeys()
Check if we encountered any primitive that had any keys
|
boolean |
hasUniqueValue()
Check if there is exactly one value for this key.
|
boolean |
unused()
Check if this key was not used in any primitive
|
public final java.util.SortedSet<java.lang.String> values
private boolean hadKeys
private boolean hadEmpty
protected Usage()
public boolean hasUniqueValue()
true
if there was exactly one value.public boolean unused()
true
if it was unused.public java.lang.String getFirst()
java.util.NoSuchElementException
- if there is no such value.public boolean hadKeys()
true
if any of the primtives had any tags.