Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class SmallIdentifier extends Object implements Serializable, Comparable<SmallIdentifier>
| Constructor and Description |
|---|
SmallIdentifier()
Creates a new, random Identifier using the default SecureRandom instance.
|
SmallIdentifier(long value) |
SmallIdentifier(Random random)
Creates a new, random Identifier using the provided Random source.
|
SmallIdentifier(String encoded) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SmallIdentifier other)
Unsigned ordering.
|
boolean |
equals(Object O) |
boolean |
equals(SmallIdentifier other) |
long |
getValue() |
int |
hashCode() |
String |
toString()
The external representation is a string of characters encoded in base 57, with
11 characters for "value".
|
static SmallIdentifier |
valueOf(String encoded) |
public SmallIdentifier()
public SmallIdentifier(Random random)
public SmallIdentifier(long value)
public SmallIdentifier(String encoded) throws IllegalArgumentException
IllegalArgumentExceptiontoString()public static SmallIdentifier valueOf(String encoded) throws IllegalArgumentException
IllegalArgumentExceptiontoString()public boolean equals(SmallIdentifier other)
public String toString()
public int compareTo(SmallIdentifier other)
compareTo in interface Comparable<SmallIdentifier>public long getValue()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.