Package org.apache.pulsar.client.api
Class Range
java.lang.Object
org.apache.pulsar.client.api.Range
- All Implemented Interfaces:
Serializable
,Comparable<Range>
Int range.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Range
public Range(int start, int end)
-
-
Method Details
-
of
-
getStart
public int getStart() -
getEnd
public int getEnd() -
intersect
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Range>
-
contains
public boolean contains(int value) Check if the value is in the range.- Parameters:
value
-- Returns:
- true if the value is in the range.
-