public class IdentifierContext extends Object implements IIdentifierContext
IIdentifierContext
.Modifier and Type | Field and Description |
---|---|
(package private) int |
endIndex |
(package private) int[] |
indices |
(package private) boolean |
isRange |
(package private) int |
startIndex |
Constructor and Description |
---|
IdentifierContext(int[] indices) |
IdentifierContext(int startIndex,
int endIndex) |
Modifier and Type | Method and Description |
---|---|
int |
getEndIndex()
The end index.
|
int |
getIndex(int i)
Get the index at position
i . |
int[] |
getIndices()
The set of discrete indices in this range.
|
int |
getNumberOfIndices()
The number of indices.
|
int |
getStartIndex()
The start index.
|
boolean |
isRange()
Does this IdContext constitution a contiguous block of fields between
the start and end indices?
|
boolean |
isValidIndex(int index)
Check if
index is within this context. |
int[] indices
int startIndex
int endIndex
boolean isRange
public IdentifierContext(int startIndex, int endIndex)
public IdentifierContext(int[] indices)
public int getEndIndex()
IIdentifierContext
getEndIndex
in interface IIdentifierContext
public int getStartIndex()
IIdentifierContext
getStartIndex
in interface IIdentifierContext
public int[] getIndices()
IIdentifierContext
getIndices
in interface IIdentifierContext
public boolean isRange()
IIdentifierContext
isRange
in interface IIdentifierContext
public boolean isValidIndex(int index)
IIdentifierContext
index
is within this context.isValidIndex
in interface IIdentifierContext
public int getIndex(int i)
IIdentifierContext
i
.getIndex
in interface IIdentifierContext
i
.public int getNumberOfIndices()
IIdentifierContext
getNumberOfIndices
in interface IIdentifierContext
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.