Package io.pravega.client.stream
Class Sequence
- java.lang.Object
-
- io.pravega.client.stream.Sequence
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Sequence>
public class Sequence extends java.lang.Object implements java.lang.Comparable<Sequence>, java.io.Serializable
A wrapper for two numbers. Where one is treated as 'high order' and the other as 'low order' to break ties when the former is the same.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
int
compareTo(Sequence o)
static Sequence
create(long highOrder, long lowOrder)
boolean
equals(java.lang.Object o)
long
getHighOrder()
long
getLowOrder()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(Sequence o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Sequence>
-
create
public static Sequence create(long highOrder, long lowOrder)
-
getHighOrder
public long getHighOrder()
-
getLowOrder
public long getLowOrder()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-