| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bytes() |
int |
compareTo(CounterId o) |
boolean |
equals(java.lang.Object o) |
static CounterId |
fromInt(int n)
Function for test purposes, do not use otherwise.
|
static CounterId |
generate() |
static CounterId |
getLocalId() |
int |
hashCode() |
boolean |
isLocalId() |
java.lang.String |
toString() |
static CounterId |
wrap(java.nio.ByteBuffer id) |
static CounterId |
wrap(java.nio.ByteBuffer bb,
int offset) |
public static final int LENGTH
public static CounterId getLocalId()
public static CounterId fromInt(int n)
public static CounterId wrap(java.nio.ByteBuffer id)
public static CounterId wrap(java.nio.ByteBuffer bb, int offset)
public static CounterId generate()
public java.nio.ByteBuffer bytes()
public boolean isLocalId()
public int compareTo(CounterId o)
compareTo in interface java.lang.Comparable<CounterId>public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2016 The Apache Software Foundation