Package org.sensorhub.api.common
Class BigIdLong
java.lang.Object
org.sensorhub.api.common.BigIdLong
- All Implemented Interfaces:
Comparable<BigId>
,BigId
BigId implementation backed by a single long value
- Since:
- Apr 14, 2022
-
Field Summary
FieldsFields inherited from interface org.sensorhub.api.common.BigId
BASE32_ENCODING, BYTES_COMPARATOR, NO_LONG_REPRESENTATION, NONE
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
scope
protected int scope -
id
protected long id
-
-
Constructor Details
-
BigIdLong
public BigIdLong(int scope, long id)
-
-
Method Details
-
getScope
public int getScope() -
getIdAsBytes
public byte[] getIdAsBytes()- Specified by:
getIdAsBytes
in interfaceBigId
- Returns:
- The value of the ID part as a byte array
-
getIdAsLong
public long getIdAsLong()- Specified by:
getIdAsLong
in interfaceBigId
- Returns:
- The value of the ID part as a long
-
size
public int size() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceBigId
- Specified by:
compareTo
in interfaceComparable<BigId>
-
hashCode
public int hashCode() -
toString
-