public interface SortedLongs extends Longs
Modifier and Type | Method and Description |
---|---|
ContinuousIndex |
continuousIndexOf(long x)
The continuous index at which x falls in this sequence.
|
void |
continuousIndexOf(long x,
ContinuousIndex result)
The continuous index at which x falls in this sequence.
|
ContinuousIndexArray |
continuousIndicesOf(Longs xs)
For each x in xs, the continuous index at which x falls in this
sequence.
|
void |
continuousIndicesOf(Longs xs,
ContinuousIndexArray result)
For each x in xs, the continuous index at which x falls in this
sequence.
|
ContinuousIndexArray |
continuousIndicesOf(SortedLongs xs)
For each x in xs, the continuous index at which x falls in this
sequence.
|
void |
continuousIndicesOf(SortedLongs xs,
ContinuousIndexArray result)
For each x in xs, the continuous index at which x falls in this
sequence.
|
int |
indexAfter(long x)
Smallest index whose value is greater than x
|
int |
indexAtOrAfter(long x)
Smallest index whose value is greater than or equal to x
|
int |
indexAtOrBefore(long x)
Largest index whose value is less than or equal to x
|
int |
indexBefore(long x)
Largest index whose value is less than x
|
int |
indexNearest(long x)
Index of the value closest to x.
|
int |
indexOf(long x)
Follows the convention of
Arrays.binarySearch(long[], long) :
If x is contained in this sequence, returns the index of x
Otherwise, returns (-insertionPoint - 1)
|
int indexOf(long x)
Arrays.binarySearch(long[], long)
:
x
is contained in this sequence, returns the index of x
Arrays.binarySearch(long[], long)
int indexNearest(long x)
int indexBefore(long x)
int indexAfter(long x)
int indexAtOrBefore(long x)
int indexAtOrAfter(long x)
void continuousIndexOf(long x, ContinuousIndex result)
ContinuousIndex
ContinuousIndex continuousIndexOf(long x)
ContinuousIndex
void continuousIndicesOf(Longs xs, ContinuousIndexArray result)
ContinuousIndexArray
ContinuousIndexArray continuousIndicesOf(Longs xs)
com.metsci.tracks.ContinuousIndexArray
void continuousIndicesOf(SortedLongs xs, ContinuousIndexArray result)
continuousIndicesOf(Longs, ContinuousIndexArray)
in some implementations.ContinuousIndexArray
ContinuousIndexArray continuousIndicesOf(SortedLongs xs)
continuousIndicesOf(Longs)
in some implementations.ContinuousIndexArray
Copyright © 2013 Metron, Inc.. All rights reserved.