public class SiteMaster extends SiteUUID
keys, values
leastSigBits, mostSigBits, numberGenerator, SIZE
IP_ADDR, IP_ADDR_UUID, NULL, SITE_MASTER, SITE_UUID, UUID_ADDR
Constructor and Description |
---|
SiteMaster() |
SiteMaster(byte[] site) |
SiteMaster(String site) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Address other)
Compares this UUID with the specified UUID.
|
UUID |
copy() |
Supplier<? extends UUID> |
create()
Creates an instance of the class implementing this interface
|
boolean |
equals(Object obj)
Compares this object to the specified object.
|
int |
hashCode()
Returns a hash code for this
UUID . |
String |
toString() |
getName, getSite, print, printOthers
addContents, get, get, keyExists, keyExists, length, put, put, put, randomUUID, randomUUID, read, readFrom, remove, remove, resize, serializedSize, sizeofHashMap, write, writeTo
digits, fromString, generateRandomBytes, generateRandomBytes, getLeastSignificantBits, getMostSignificantBits, toStringLong
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
serializedSize
readFrom, writeTo
public SiteMaster()
public SiteMaster(String site)
public SiteMaster(byte[] site)
public Supplier<? extends UUID> create()
Constructable
create
in interface Constructable<UUID>
create
in class SiteUUID
public int compareTo(Address other)
UUID
The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is greater for the first UUID.
compareTo
in interface Comparable<Address>
compareTo
in class SiteUUID
other
- UUID
to which this UUID
is to be comparedUUID
is less than, equal to, or greater than val
public boolean equals(Object obj)
UUID
true
if and only if the argument is not null
, is a UUID
object, has the same variant, and contains the same value, bit for bit,
as this UUID
.public int hashCode()
UUID
UUID
.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.