T - The type of value associated with a PartitionAttributes.Key.public static final class PartitionAttributes.Key<T> extends Object implements Comparable<PartitionAttributes.Key>
PartitionAttributes.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PartitionAttributes.Key o) |
boolean |
equals(Object o) |
int |
hashCode() |
static <T> PartitionAttributes.Key<T> |
newKey()
Create a new instance.
|
static <T> PartitionAttributes.Key<T> |
newKey(String toString)
Create a new
PartitionAttributes.Key which has a String used only in the toString() method for debugging
visibility. |
String |
toString() |
public static <T> PartitionAttributes.Key<T> newKey(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 String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(PartitionAttributes.Key o)
compareTo in interface Comparable<PartitionAttributes.Key>