public interface IIdentifierField
Modifier and Type | Method and Description |
---|---|
int |
getIntegerMask()
Get mask on as int value.
|
String |
getLabel()
Get the string label associated with this field.
|
long |
getLongMask()
Get mask on as long value.
|
int |
getMaxValue()
Get the maximum inclusive value that can be stored in this field.
|
int |
getMinValue()
Get the minimum inclusive value that can be stored in this field.
|
int |
getNumberOfBits()
Get the number of bits in this field.
|
int |
getOffset()
Get offset, or starting position, of this field.
|
boolean |
isSigned()
True if field is capable of holding signed values.
|
boolean |
isValidValue(int value)
True if value is within valid range of field values; false if not.
|
IIdentifier |
pack(int value)
Pack a single value of this field into a
IIdentifier . |
void |
pack(int value,
IIdentifier id)
Pack a single value this field into an existing
IIdentifier ,
preserving the other field values that may be present. |
int |
unpack(IIdentifier id)
Unpack and return the value of this field from a 64-bit
IIdentifier . |
int |
unpack(long value)
Unpack and return the value of this field from a raw long.
|
String getLabel()
int getNumberOfBits()
int getOffset()
long getLongMask()
int getIntegerMask()
boolean isSigned()
int unpack(IIdentifier id)
IIdentifier
.int unpack(long value)
IIdentifier pack(int value)
IIdentifier
.value
- A value to pack into this field.void pack(int value, IIdentifier id)
IIdentifier
,
preserving the other field values that may be present.value
- The field value.id
- An Identifier.int getMaxValue()
int getMinValue()
boolean isValidValue(int value)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.