public interface IExpandedIdentifier
IIdentifier
so that individual field values are available by index.
Use the associated IIdentifierDictionary
to
see which indices correspond to which field labels.Modifier and Type | Method and Description |
---|---|
void |
addValue(int value)
Push a value onto the end of this identifier.
|
void |
clear()
Clear the identifier of all field values.
|
int |
compareField(IExpandedIdentifier id,
int idx)
Compare a single field value.
|
int |
getMaxIndex()
Get the maximum index which is
size() - 1 . |
int |
getValue(int index)
Get the field value at an index.
|
List<Integer> |
getValues()
Return the field values as a list.
|
boolean |
isValid()
True if the
IExpandedIdentifier is in
a valid state with 1 or more field values;
False if there are no values when size is 0. |
boolean |
isValidIndex(int i)
True if the index is valid.
|
int |
match(IExpandedIdentifier id)
Compares identifiers on prefix fields.
|
void |
setValue(int index,
int value)
Set the field value at an index.
|
int |
size()
Get the number of fields in this identifier.
|
void addValue(int value)
int getValue(int index)
void setValue(int index, int value)
int size()
int getMaxIndex()
size()
- 1 .boolean isValidIndex(int i)
i
- The index.void clear()
size()
method returns 0 after
this method is called.boolean isValid()
IExpandedIdentifier
is in
a valid state with 1 or more field values;
False if there are no values when size is 0.int match(IExpandedIdentifier id)
int compareField(IExpandedIdentifier id, int idx)
id
- idx
- Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.