public final class MOFID
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
static int |
STRING_LENGTH |
| Constructor and Description |
|---|
MOFID(long serialNumber,
java.lang.String storageId)
This constructor is just for internal use by storage
to create MOFID after deserialization and should be
newer called by user code.
|
MOFID(Storage storage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
compare MOFIDs as values
|
static void |
fromLong(long value,
char[] buffer,
int offset)
Convert long to 16 hex digits, to be placed in a character array.
|
static MOFID |
fromString(java.lang.String mofId) |
long |
getSerialNumber()
get the serial number
|
java.lang.String |
getStorageID()
Getter for storage ID.
|
int |
hashCode()
MOFIDs with equal values will hash equal
|
static java.lang.String |
makeString(java.lang.String prefix,
long id)
Construct the external form of a MOFID
|
java.lang.String |
toString()
Convert to external form.
|
public static final int LENGTH
public static final int STRING_LENGTH
public MOFID(Storage storage)
public MOFID(long serialNumber,
java.lang.String storageId)
public long getSerialNumber()
public java.lang.String getStorageID()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static java.lang.String makeString(java.lang.String prefix,
long id)
public java.lang.String toString()
toString in class java.lang.Objectpublic static void fromLong(long value,
char[] buffer,
int offset)
value - value to convert to hex digitsbuffer - array into which to place hex digitsbeginning - offset in arraypublic static MOFID fromString(java.lang.String mofId)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.