public class UUIDHandler
extends java.lang.Object
Constructor and Description |
---|
UUIDHandler()
|
Modifier and Type | Method and Description |
---|---|
static void |
add(StringWrapper name,
java.util.UUID uuid)
Add a set to the cache
|
static java.lang.String |
getName(java.util.UUID uuid)
|
static java.util.UUID |
getUUID(java.lang.String name)
|
static com.google.common.collect.BiMap<StringWrapper,java.util.UUID>
|
getUuidMap()
Get the map containing all names/uuids
|
static void |
handleSaving()
Handle saving of uuids
|
static boolean |
nameExists(StringWrapper name)
Check if a name is cached
|
static boolean |
uuidExists(java.util.UUID uuid)
Check if a uuid is cached
|
public static com.google.common.collect.BiMap<StringWrapper,java.util.UUID> getUuidMap()
public static boolean uuidExists(java.util.UUID uuid)
uuid
- to checkpublic static boolean nameExists(StringWrapper name)
name
- to checkpublic static void add(StringWrapper name, java.util.UUID uuid)
name
- to cacheuuid
- to cachepublic static java.util.UUID getUUID(java.lang.String name)
name
- to use as keypublic static java.lang.String getName(java.util.UUID uuid)
uuid
- to use as keypublic static void handleSaving()