@API(status=STABLE,
since="1.0")
public static class UniqueId.Segment
extends java.lang.Object
implements java.io.Serializable
UniqueId comprises a type and a
value.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
private java.lang.String |
type |
private java.lang.String |
value |
| Constructor and Description |
|---|
Segment(java.lang.String type,
java.lang.String value)
Create a new
Segment using the supplied type and
value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getType()
Get the type of this segment.
|
java.lang.String |
getValue()
Get the value of this segment.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final long serialVersionUID
private final java.lang.String type
private final java.lang.String value
Segment(java.lang.String type,
java.lang.String value)
Segment using the supplied type and
value.type - the type of this segmentvalue - the value of this segmentpublic java.lang.String getType()
public java.lang.String getValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object