public class ExpandedIdentifier extends Object implements IExpandedIdentifier
IExpandedIdentifier
.Constructor and Description |
---|
ExpandedIdentifier() |
ExpandedIdentifier(ExpandedIdentifier id) |
ExpandedIdentifier(IExpandedIdentifier id) |
ExpandedIdentifier(int reserve) |
ExpandedIdentifier(int[] values) |
ExpandedIdentifier(int[] values,
int start) |
ExpandedIdentifier(List<Integer> values) |
ExpandedIdentifier(List<Integer> values,
int start) |
ExpandedIdentifier(String values) |
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.
|
ExpandedIdentifier |
copy() |
boolean |
equals(IExpandedIdentifier id) |
boolean |
equals(Object object) |
int |
getMaxIndex()
Get the maximum index which is
IExpandedIdentifier.size() - 1 . |
int |
getValue(int index)
Get the field value at an index.
|
List<Integer> |
getValues()
Return the field values as a list.
|
int |
hashCode() |
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 idx,
int value)
Set the field value at an index.
|
int |
size()
Get the number of fields in this identifier.
|
String |
toString() |
public ExpandedIdentifier()
public ExpandedIdentifier(IExpandedIdentifier id)
public ExpandedIdentifier(ExpandedIdentifier id)
public ExpandedIdentifier(int reserve)
public ExpandedIdentifier(int[] values)
public ExpandedIdentifier(int[] values, int start)
public ExpandedIdentifier(String values)
public ExpandedIdentifier copy()
public void addValue(int value)
IExpandedIdentifier
addValue
in interface IExpandedIdentifier
public void setValue(int idx, int value)
IExpandedIdentifier
setValue
in interface IExpandedIdentifier
public void clear()
IExpandedIdentifier
IExpandedIdentifier.size()
method returns 0 after
this method is called.clear
in interface IExpandedIdentifier
public int size()
IExpandedIdentifier
size
in interface IExpandedIdentifier
public int getValue(int index)
IExpandedIdentifier
getValue
in interface IExpandedIdentifier
public List<Integer> getValues()
IExpandedIdentifier
getValues
in interface IExpandedIdentifier
public boolean isValid()
IExpandedIdentifier
IExpandedIdentifier
is in
a valid state with 1 or more field values;
False if there are no values when size is 0.isValid
in interface IExpandedIdentifier
public boolean equals(IExpandedIdentifier id)
public int match(IExpandedIdentifier id)
IExpandedIdentifier
match
in interface IExpandedIdentifier
public int getMaxIndex()
IExpandedIdentifier
IExpandedIdentifier.size()
- 1 .getMaxIndex
in interface IExpandedIdentifier
public boolean isValidIndex(int i)
IExpandedIdentifier
isValidIndex
in interface IExpandedIdentifier
i
- The index.public int compareField(IExpandedIdentifier id, int idx)
IExpandedIdentifier
compareField
in interface IExpandedIdentifier
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.