public final class Ranges extends Object implements Externalizable, Iterable<Ranges.Range>
| Modifier and Type | Class and Description |
|---|---|
static class |
Ranges.Range |
| Constructor and Description |
|---|
Ranges() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int start) |
void |
add(int start,
int length) |
void |
clear() |
boolean |
contains(int value) |
Ranges |
copy() |
void |
copy(Ranges source) |
boolean |
isEmpty() |
Iterator<Ranges.Range> |
iterator() |
Iterator<Ranges.Range> |
iteratorNotInRange(Ranges.Range mask) |
static Ranges.Range |
range(int start,
int end) |
void |
readExternal(DataInput in) |
void |
readExternal(ObjectInput in) |
void |
remove(int start) |
void |
remove(int start,
int length) |
int |
size() |
ArrayList<Ranges.Range> |
toArrayList() |
String |
toString() |
Iterator<Integer> |
valueIterator() |
List<Integer> |
values() |
Iterator<Integer> |
valuesIteratorNotInRange(Ranges.Range r) |
void |
writeExternal(DataOutput out) |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Ranges copy()
public void add(int start)
public void add(int start,
int length)
public void remove(int start)
public void remove(int start,
int length)
public boolean contains(int value)
public void clear()
public void copy(Ranges source)
public int size()
public static Ranges.Range range(int start, int end)
public ArrayList<Ranges.Range> toArrayList()
public Iterator<Ranges.Range> iterator()
iterator in interface Iterable<Ranges.Range>public Iterator<Ranges.Range> iteratorNotInRange(Ranges.Range mask)
public Iterator<Integer> valuesIteratorNotInRange(Ranges.Range r)
public boolean isEmpty()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic void writeExternal(DataOutput out) throws IOException
IOExceptionpublic void readExternal(DataInput in) throws IOException
IOExceptionCopyright © 2009–2015 FuseSource, Corp.. All rights reserved.