public final class TagReference
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<TagReference> |
MULTI_FIRST
Comparator which collects the multiple tag first for tags with the same name, but different multiplicity.
|
static java.util.Comparator<TagReference> |
SIMPLE_FIRST
Comparator which collects the simple tag first for tags with the same name, but different multiplicity.
|
| Constructor and Description |
|---|
TagReference(java.lang.String tag,
boolean multi)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getTag()
Get the tag.
|
int |
hashCode() |
boolean |
isMulti()
Is the given tag for a multiple insertion?
|
java.lang.String |
toString() |
public static final java.util.Comparator<TagReference> SIMPLE_FIRST
public static final java.util.Comparator<TagReference> MULTI_FIRST
public TagReference(@NotNull java.lang.String tag, boolean multi)
tag - tagmulti - is this a multiple reference@NotNull public java.lang.String getTag()
public boolean isMulti()
true: the tag is for a multiple insertionfalse: the tag is for a simple insertionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object