Class PartitionAttributes.Key<T>
java.lang.Object
io.servicetalk.client.api.partition.PartitionAttributes.Key<T>
- Type Parameters:
T
- The type of value associated with aPartitionAttributes.Key
.
- All Implemented Interfaces:
Comparable<PartitionAttributes.Key>
- Enclosing interface:
- PartitionAttributes
public static final class PartitionAttributes.Key<T>
extends Object
implements Comparable<PartitionAttributes.Key>
A key identifies a specific object in a
PartitionAttributes
.-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
static <T> PartitionAttributes.Key<T>
newKey()
Create a new instance.static <T> PartitionAttributes.Key<T>
Create a newPartitionAttributes.Key
which has aString
used only in thetoString()
method for debugging visibility.toString()
-
Method Details
-
newKey
Create a newPartitionAttributes.Key
which has aString
used only in thetoString()
method for debugging visibility.Comparison between
PartitionAttributes.Key
objects should be assumed to be on an instance basis. In generalnewKey(str) != newKey(str)
.- Type Parameters:
T
- The value type associated with thePartitionAttributes.Key
.- Parameters:
toString
- The value to use intoString()
. This WILL NOT be used in comparisons betweenPartitionAttributes.Key
objects.- Returns:
- a new
PartitionAttributes.Key
which has aString
used only in thetoString()
method for debugging visibility.
-
newKey
Create a new instance.Comparison between
PartitionAttributes.Key
objects should be assumed to be on an instance basis. In generalnewKey() != newKey()
.- Type Parameters:
T
- The value type associated with thePartitionAttributes.Key
.- Returns:
- a new instance.
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-