public class RangeSet extends AbstractSet<Object> implements Iterable<Object>
| Constructor and Description |
|---|
RangeSet() |
RangeSet(Iterable<Integer> values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object value) |
boolean |
addAll(Iterable<Integer> values) |
boolean |
addRange(AbstractRange<?> addRange) |
boolean |
addRange(char from,
char to) |
boolean |
addRange(int from,
int to) |
boolean |
addRange(Object from,
Object to) |
static RangeSet |
create(String rangeSpec) |
List<AbstractRange<?>> |
getRanges() |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
boolean |
remove(Object value) |
boolean |
removeAll(Iterable<Integer> values) |
boolean |
removeRange(int from,
int to) |
int |
size() |
List<Object> |
toList() |
String |
toString() |
equals, hashCode, removeAlladdAll, clear, contains, containsAll, retainAll, toArray, toArraypublic boolean add(Object value)
add in interface Collection<Object>add in interface Set<Object>add in class AbstractCollection<Object>public boolean addRange(AbstractRange<?> addRange)
public boolean addRange(char from,
char to)
public boolean addRange(int from,
int to)
public List<AbstractRange<?>> getRanges()
public boolean isEmpty()
isEmpty in interface Collection<Object>isEmpty in interface Set<Object>isEmpty in class AbstractCollection<Object>public boolean remove(Object value)
remove in interface Collection<Object>remove in interface Set<Object>remove in class AbstractCollection<Object>public boolean removeRange(int from,
int to)
public int size()
size in interface Collection<Object>size in interface Set<Object>size in class AbstractCollection<Object>public String toString()
toString in class AbstractCollection<Object>Copyright © 2015 Revolution Systems Inc.. All rights reserved.