public class UID extends NSObject
Constructor and Description |
---|
UID(String name,
BigInteger value)
Creates a new UID instance.
|
UID(String name,
byte[] bytes)
Creates a new UID instance.
|
Modifier and Type | Method and Description |
---|---|
UID |
clone()
Creates and returns a deep copy of this instance.
|
int |
compareTo(NSObject o) |
boolean |
equals(Object o) |
byte[] |
getBytes()
Gets this instance's value.
|
String |
getName()
Gets this instance's name.
|
int |
hashCode() |
protected void |
toASCII(StringBuilder ascii,
int level)
Generates the ASCII representation of this object.
|
protected void |
toASCIIGnuStep(StringBuilder ascii,
int level)
Generates the ASCII representation of this object in the GnuStep format.
|
Object |
toJavaObject()
Converts this NSObject into an equivalent object of the Java Runtime Environment.
|
String |
toString() |
fromJavaObject, getLocationInformation, indent, toJavaObject, toXMLPropertyList
public UID(String name, BigInteger value)
name
- The UID name.value
- The UID value.NullPointerException
- If value is null.IllegalArgumentException
- If value is negative or has a length of more than 128-bit.public UID(String name, byte[] bytes)
name
- The UID name.bytes
- The UID value.NullPointerException
- If bytes is null.IllegalArgumentException
- If bytes represents a UID with a length of more than 128-bit (leading zero bytes are ignored).public byte[] getBytes()
public String getName()
public UID clone()
NSObject
public Object toJavaObject()
NSObject
NSArray
objects are converted to arrays.NSDictionary
objects are converted to objects extending the Map
class.NSSet
objects are converted to objects extending the Set
class.NSNumber
objects are converted to primitive number values (int, long, double or boolean).NSString
objects are converted to String
objects.NSData
objects are converted to byte arrays.NSDate
objects are converted to Date
objects.UID
objects are converted to byte arrays.toJavaObject
in class NSObject
protected void toASCII(StringBuilder ascii, int level)
NSObject
ascii
- The StringBuilder
onto which the ASCII representation is appended.level
- The indentation level of the object.protected void toASCIIGnuStep(StringBuilder ascii, int level)
NSObject
ascii
- The StringBuilder
onto which the ASCII representation is appended.level
- The indentation level of the object.public int compareTo(NSObject o)
Copyright © 2024. All rights reserved.