@Deprecated public class UniqueName extends java.lang.Object implements java.lang.Comparable<UniqueName>
Modifier and Type | Field and Description |
---|---|
private int |
id
Deprecated.
|
private java.lang.String |
name
Deprecated.
|
private static java.util.concurrent.atomic.AtomicInteger |
nextId
Deprecated.
|
Modifier | Constructor and Description |
---|---|
|
UniqueName(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Boolean> map,
java.lang.String name,
java.lang.Object... args)
Deprecated.
Constructs a new
UniqueName |
protected |
UniqueName(java.lang.String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UniqueName other)
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
int |
id()
Deprecated.
Returns this
UniqueName 's ID |
java.lang.String |
name()
Deprecated.
Returns this
UniqueName 's name |
java.lang.String |
toString()
Deprecated.
|
protected void |
validateArgs(java.lang.Object... args)
Deprecated.
Validates the given arguments.
|
private static final java.util.concurrent.atomic.AtomicInteger nextId
private final int id
private final java.lang.String name
public UniqueName(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Boolean> map, java.lang.String name, java.lang.Object... args)
UniqueName
map
- the map of names to compare withname
- the name of this UniqueName
args
- the arguments to processprotected UniqueName(java.lang.String name)
protected void validateArgs(java.lang.Object... args)
args
- arguments to validatepublic final java.lang.String name()
UniqueName
's namepublic final int id()
UniqueName
's IDpublic final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(UniqueName other)
compareTo
in interface java.lang.Comparable<UniqueName>
public java.lang.String toString()
toString
in class java.lang.Object