Sequenceablepublic class SequenceUuid extends Object implements Sequenceable
SequenceUuid object can be converted to
a
Parcel object and vice versa.Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<SequenceUuid> |
PRODUCER |
Indicates a static public member used to create a
SequenceUuid instance. |
| 构造器 | 说明 |
|---|---|
SequenceUuid() |
A constructor used to create an empty
SequenceUuid object. |
SequenceUuid(UUID uuid) |
A constructor used to create a
SequenceUuid object with a specified UUID. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether a given object is the same as the current
SequenceUuid object. |
UUID |
getUuid() |
Obtains the UUID object encapsulated in the current
SequenceUuid object. |
int |
hashCode() |
Obtains the hash code of the current
SequenceUuid object. |
boolean |
marshalling(Parcel out) |
Marshals the current
SequenceUuid object to the specified Parcel object. |
String |
toString() |
Obtains the string representation of the UUID object encapsulated in the current
SequenceUuid object. |
boolean |
unmarshalling(Parcel in) |
Unmarshals the current
SequenceUuid object from the specified Parcel object. |
static SequenceUuid |
uuidFromString(String uuid) |
Creates a
SequenceUuid object using a specified UUID string. |
hasFileDescriptorpublic static final Sequenceable.Producer<SequenceUuid> PRODUCER
SequenceUuid instance.public SequenceUuid()
SequenceUuid object.public SequenceUuid(UUID uuid)
SequenceUuid object with a specified UUID.uuid - Indicates the UUID object to be set in the SequenceUuid object.public static SequenceUuid uuidFromString(String uuid)
SequenceUuid object using a specified UUID string.uuid - Indicates the format-compliant UUID string used to create the SequenceUuid object.SequenceUuid object.IllegalArgumentException - Throws this exception if the string does not comply with the string
representation described in toString.public UUID getUuid()
SequenceUuid object.SequenceUuid object.public String toString()
SequenceUuid object.public int hashCode()
SequenceUuid object.hashCode 在类中 ObjectSequenceUuid object.Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public boolean equals(Object obj)
SequenceUuid object.equals 在类中 Objectobj - Indicates the object to be compared with the current SequenceUuid object.true if the two objects are the same; returns false otherwise.Object.hashCode(),
HashMappublic boolean marshalling(Parcel out)
SequenceUuid object to the specified Parcel object.marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceUuid object from the specified Parcel object.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.