18 #ifndef _DECAF_UTIL_UUID_H_ 19 #define _DECAF_UTIL_UUID_H_ 80 static UUID randomUUID();
91 static UUID nameUUIDFromBytes(
const std::vector<char>& name);
104 static UUID nameUUIDFromBytes(
const char* name,
int size);
117 static UUID fromString(
const std::string& name);
129 UUID(
long long mostSigBits,
long long leastSigBits);
147 UUID& operator= (
const UUID& source);
155 virtual int compareTo(
const UUID& value)
const;
165 virtual bool equals(
const UUID& value)
const;
172 int hashCode()
const;
187 virtual bool operator<(
const UUID& value)
const;
211 std::string toString()
const;
216 long long getLeastSignificantBits()
const;
221 long long getMostSignificantBits()
const;
255 long long timestamp();
A class that represents an immutable universally unique identifier (UUID).
Definition: UUID.h:66
#define DECAF_API
Definition: Config.h:29
bool operator==(const ArrayPointer< T > &left, const U *right)
Definition: ArrayPointer.h:379
This interface imposes a total ordering on the objects of each class that implements it...
Definition: Comparable.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25