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 TypeMethodDescriptionintbooleaninthashCode()static <T> PartitionAttributes.Key<T>newKey()Create a new instance.static <T> PartitionAttributes.Key<T>Create a newPartitionAttributes.Keywhich has aStringused only in thetoString()method for debugging visibility.toString()
-
Method Details
-
newKey
Create a newPartitionAttributes.Keywhich has aStringused only in thetoString()method for debugging visibility.Comparison between
PartitionAttributes.Keyobjects 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.Keyobjects.- Returns:
- a new
PartitionAttributes.Keywhich has aStringused only in thetoString()method for debugging visibility.
-
newKey
Create a new instance.Comparison between
PartitionAttributes.Keyobjects 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:
compareToin interfaceComparable<T>
-