@Immutable public class MarkerRange extends Object
Marker objects, which contain one or more
concrete partitions, and can be inclusive or exclusive.| Modifier and Type | Class and Description |
|---|---|
static class |
MarkerRange.Boundary
Represents the boundary of a range, either inclusive or exclusive.
|
static class |
MarkerRange.Builder |
| Constructor and Description |
|---|
MarkerRange(MarkerComparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
MarkerRange |
complement() |
boolean |
contains(Marker marker) |
boolean |
equals(Object o) |
MarkerRange |
from(Marker start) |
MarkerRange |
fromAfter(Marker start) |
MarkerRange.Boundary |
getEnd() |
MarkerRange.Boundary |
getStart() |
int |
hashCode() |
MarkerRange |
intersection(MarkerRange other) |
MarkerRange |
of(Marker partial) |
MarkerRange |
span(MarkerRange other) |
MarkerRange |
to(Marker end) |
MarkerRange |
toBefore(Marker end) |
String |
toString() |
public MarkerRange(MarkerComparator comparator)
public boolean contains(Marker marker)
public MarkerRange from(Marker start)
public MarkerRange fromAfter(Marker start)
public MarkerRange to(Marker end)
public MarkerRange toBefore(Marker end)
public MarkerRange of(Marker partial)
public MarkerRange intersection(MarkerRange other)
public MarkerRange span(MarkerRange other)
public MarkerRange complement()
public MarkerRange.Boundary getStart()
public MarkerRange.Boundary getEnd()
Copyright © 2013–2015. All rights reserved.