Lines Matching refs:UID

34  * A <code>UID</code> represents an identifier that is unique over time
38 * <p>The {@link #UID()} constructor can be used to generate an
40 * generated on. The {@link #UID(short)} constructor can be used to
43 * <p>A <code>UID</code> instance contains three primitive values:
46 * the VM that this <code>UID</code> was generated in, with respect to its
50 * or zero for a well-known <code>UID</code>
53 * <code>UID</code> was generated in was alive,
54 * or zero for a well-known <code>UID</code>
56 * <code>UID</code>s generated in the same VM with the same
60 * <p>An independently generated <code>UID</code> instance is unique
64 * constructed by pairing a <code>UID</code> instance with a unique host
71 public final class UID implements Serializable {
84 * number that uniquely identifies the VM that this <code>UID</code>
92 * the VM that this <code>UID</code> was generated in was alive
98 * 16-bit number to distinguish <code>UID</code> instances created
105 * Generates a <code>UID</code> that is unique over time with
108 public UID() {
146 * Creates a "well-known" <code>UID</code>.
150 * <p>A <code>UID</code> created via this constructor will not
151 * clash with any <code>UID</code>s generated via the no-arg
154 * @param num number for well-known <code>UID</code>
156 public UID(short num) {
163 * Constructs a <code>UID</code> given data read from a stream.
165 private UID(int unique, long time, short count) {
172 * Returns the hash code value for this <code>UID</code>.
174 * @return the hash code value for this <code>UID</code>
181 * Compares the specified object with this <code>UID</code> for
185 * specified object is a <code>UID</code> instance with the same
189 * @param obj the object to compare this <code>UID</code> to
195 if (obj instanceof UID) {
196 UID uid = (UID) obj;
206 * Returns a string representation of this <code>UID</code>.
208 * @return a string representation of this <code>UID</code>
217 * Marshals a binary representation of this <code>UID</code> to
221 * {@link DataOutput#writeInt(int)} method with this <code>UID</code>'s
223 * {@link DataOutput#writeLong(long)} method with this <code>UID</code>'s
225 * {@link DataOutput#writeShort(int)} method with this <code>UID</code>'s
229 * this <code>UID</code> to
241 * Constructs and returns a new <code>UID</code> instance by
251 * and then it creates and returns a new <code>UID</code> instance
256 * <code>UID</code> from
258 * @return unmarshalled <code>UID</code> instance
263 public static UID read(DataInput in) throws IOException {
267 return new UID(unique, time, count);