Modifier and Type  Method and Description 

boolean 
contains(byte[] key)
Determine whether this instance contains the given key.

byte[] 
seekHigher(byte[] key)
Skip over the largest possible uncontained region in an upward direction.

byte[] 
seekLower(byte[] key)
Skip over the largest possible uncontained region in a downward direction.

boolean contains(byte[] key)
key
 key to testkey
is contained by this instance, otherwise falseIllegalArgumentException
 if key
is nullbyte[] seekHigher(byte[] key)
This method should return an inclusive lower bound on all keys greater than or equal to key
that are contained by this instance. The bound does not have to be tight, but the tighter the better.
A value of null may be returned to indicate that no key greater than or equal to key
is contained by this instance.
If key
is contained by this instance, this method must return key
;
if key
is not contained by this instance, this method must return a key strictly higher than key
or null.
key
 starting keykey
,
or null if no key greater than or equal to key
is contained by this instanceIllegalArgumentException
 if key
is nullbyte[] seekLower(byte[] key)
This method should return an exclusive upper bound on all keys strictly less than key
that are contained by this instance. The bound does not have to be tight, but the tighter the better.
A value of null may be returned to indicate that no key strictly less than key
is contained by this instance.
For the purposes of this method, an empty byte[]
array represents an upper bound greater than all
byte[]
keys. This interpretation applies both to the key
parameter and returned value. Note that
this implies an empty array cannot be returned to indicate that no keys exist (instead, return null).
This method must either return null or a value less than or equal to key
(using the above interpretation
for empty arrays).
key
 starting key, or an empty array to indicate a maximal upper boundkey
,
null if no key strictly less than key
is contained by this instance, or an empty byte[]
array
to indicate an upper bound greater than all byte[]
keys (which implies key
was also empty)IllegalArgumentException
 if key
is nullCopyright © 2019. All rights reserved.