T
- The type of value associated with a PartitionAttributes.Key
.public static final class PartitionAttributes.Key<T> extends java.lang.Object implements java.lang.Comparable<PartitionAttributes.Key>
PartitionAttributes
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(PartitionAttributes.Key o) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static <T> PartitionAttributes.Key<T> |
newKey()
Create a new instance.
|
static <T> PartitionAttributes.Key<T> |
newKey(java.lang.String toString)
Create a new
PartitionAttributes.Key which has a String used only in the toString() method for debugging
visibility. |
java.lang.String |
toString() |
public static <T> PartitionAttributes.Key<T> newKey(java.lang.String toString)
PartitionAttributes.Key
which has a String
used only in the toString()
method for debugging
visibility.
Comparison between PartitionAttributes.Key
objects should be assumed to be on an instance basis.
In general newKey(str) != newKey(str)
.
T
- The value type associated with the PartitionAttributes.Key
.toString
- The value to use in toString()
. This WILL NOT be used in
comparisons between PartitionAttributes.Key
objects.PartitionAttributes.Key
which has a String
used only in the toString()
method for
debugging visibility.public static <T> PartitionAttributes.Key<T> newKey()
Comparison between PartitionAttributes.Key
objects should be assumed to be on an instance basis.
In general newKey() != newKey()
.
T
- The value type associated with the PartitionAttributes.Key
.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(PartitionAttributes.Key o)
compareTo
in interface java.lang.Comparable<PartitionAttributes.Key>