A few useful collections.
-
InsertionPoint.after(double floor)
Returns an insertion point immediately after floor
.
InsertionPoint.after(int floor)
Returns an insertion point immediately after the given
floor
and
before the next integer (if
ceiling
isn't
Integer.MAX_VALUE
).
InsertionPoint.after(long floor)
Returns an insertion point immediately after the given
floor
and
before the next integer (if
ceiling
isn't
Long.MAX_VALUE
).
InsertionPoint.after(C floor,
com.google.common.collect.DiscreteDomain<C> domain)
Returns an insertion point immediately after the given floor
and
before the next element in the given discrete domain
(if a next element
exists).
InsertionPoint.at(C element)
Returns an insertion point exactly at
element
such that
exact()
,
floor
and
ceiling
all return the same element.
InsertionPoint.before(double ceiling)
Returns an insertion point immediately before ceiling
.
InsertionPoint.before(int ceiling)
Returns an insertion point immediately before the given
ceiling
and
after the previous integer (if
ceiling
isn't
Integer.MIN_VALUE
).
InsertionPoint.before(long ceiling)
Returns an insertion point immediately before the given
ceiling
and
after the previous integer (if
ceiling
isn't
Long.MIN_VALUE
).
InsertionPoint.before(C ceiling,
com.google.common.collect.DiscreteDomain<C> domain)
Returns an insertion point immediately before the given ceiling
and
after the previous element in the given discrete domain
(if a previous
element exists).
InsertionPoint.between(double floor,
double ceiling)
Returns an insertion point in the open range of (floor, ceiling)
.
Finds the insertion point immediately after the last element that's less than or equal to the target.
Finds the insertion point immediately before the first element that's greater than or equal to the target.