public class Etag extends Object implements Comparable<Etag>
Constructor and Description |
---|
Etag() |
Etag(String str) |
Etag(UuidType type,
long restarts,
long changes) |
Modifier and Type | Method and Description |
---|---|
static long |
bytesToLong(byte[] bytes) |
Etag |
clone() |
int |
compareTo(Etag other) |
static Etag |
empty() |
boolean |
equals(Object obj) |
long |
getChanges() |
long |
getRestarts() |
int |
hashCode() |
Etag |
incrementBy(int amount) |
static Etag |
invalidEtag() |
static Etag |
parse(byte[] bytes) |
static Etag |
parse(String str) |
static Etag |
random() |
Etag |
setup(UuidType type,
long restartsNum) |
byte[] |
toByteArray() |
String |
toString() |
static boolean |
tryParse(String str,
Reference<Etag> etag) |
public Etag()
public Etag(String str)
public Etag(UuidType type, long restarts, long changes)
public long getRestarts()
public Etag clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public long getChanges()
public byte[] toByteArray()
public static long bytesToLong(byte[] bytes)
public static Etag parse(byte[] bytes)
public static Etag invalidEtag()
public static Etag empty()
public Etag incrementBy(int amount)
public static Etag random()
public int compareTo(Etag other)
compareTo
in interface Comparable<Etag>
Copyright © 2016. All Rights Reserved.