public class Identifier extends Object implements IIdentifier
IIdentifier
.Modifier and Type | Field and Description |
---|---|
(package private) boolean |
garbage |
(package private) boolean |
valid |
(package private) long |
value |
Constructor and Description |
---|
Identifier() |
Identifier(Identifier id) |
Identifier(IIdentifier id) |
Identifier(int value) |
Identifier(long value) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the state of this identifier,
setting the value to 0.
|
int |
compareTo(Object object) |
Identifier |
copy() |
boolean |
equals(Object object) |
void |
fromHexString(String hexRep)
Set the value from a raw hex string.
|
boolean |
getGarbage() |
long |
getValue()
Get the value of this identifier as a long.
|
int |
hashCode() |
boolean |
isValid()
True if this ID has been set;
False if it has not been set
or was set and
IIdentifier.clear()
was called. |
void |
setValue(long value)
Set the value of this identifier from a long.
|
String |
toHexString()
Get a raw hex string representation.
|
String |
toString() |
public Identifier()
public Identifier(IIdentifier id)
public Identifier(Identifier id)
public Identifier(long value)
public Identifier(int value)
public Identifier copy()
public long getValue()
IIdentifier
getValue
in interface IIdentifier
public void setValue(long value)
IIdentifier
setValue
in interface IIdentifier
value
- The long value.public void clear()
IIdentifier
clear
in interface IIdentifier
public String toHexString()
IIdentifier
toHexString
in interface IIdentifier
public void fromHexString(String hexRep)
IIdentifier
fromHexString
in interface IIdentifier
hexRep
- The hex representation.public boolean isValid()
IIdentifier
IIdentifier.clear()
was called.isValid
in interface IIdentifier
public int compareTo(Object object)
compareTo
in interface Comparable
public boolean getGarbage()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.