Interface LongArray
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractBlockPackedReader,LongArray.DeferredLongArray
Abstraction over a long-indexed array of longs.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interface -
Method Summary
-
Method Details
-
get
long get(long idx) Get value atidx. -
length
long length()Get array length. -
indexOf
long indexOf(long value) Using the given value returns the first index corresponding to the value.- Parameters:
value- Value to lookup, and it must not be smaller than previous value- Returns:
- The index of the given value or negative value if target value is greater than all values
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-