Package org.apache.uima.internal.util
Class OrderedFsSet_array2.SubSet
- java.lang.Object
-
- org.apache.uima.internal.util.OrderedFsSet_array2.SubSet
-
- All Implemented Interfaces:
java.lang.Iterable<TOP>
,java.util.Collection<TOP>
,java.util.NavigableSet<TOP>
,java.util.Set<TOP>
,java.util.SortedSet<TOP>
- Enclosing class:
- OrderedFsSet_array2
public static class OrderedFsSet_array2.SubSet extends java.lang.Object implements java.util.NavigableSet<TOP>
This is used in a particular manner: only used to create iterators over that subset -- no insert/delete
-
-
Field Summary
Fields Modifier and Type Field Description private TOP
firstElementInRange
private int
firstPosInRange
private TOP
fromElement
private boolean
fromInclusive
private TOP
lastElementInRange
private int
lastPosInRange
private int
sizeSubSet
(package private) java.util.function.Supplier<OrderedFsSet_array2>
theSet
private TOP
toElement
private boolean
toInclusive
-
Constructor Summary
Constructors Constructor Description SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive)
SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, java.util.Comparator<TOP> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(TOP e)
boolean
addAll(java.util.Collection<? extends TOP> c)
TOP
ceiling(TOP fs)
void
clear()
java.util.Comparator<? super TOP>
comparator()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
java.util.Iterator<TOP>
descendingIterator()
java.util.NavigableSet<TOP>
descendingSet()
TOP
first()
TOP
floor(TOP fs)
java.util.SortedSet<TOP>
headSet(TOP toElement1)
java.util.NavigableSet<TOP>
headSet(TOP toElement1, boolean inclusive)
TOP
higher(TOP fs)
boolean
isEmpty()
private boolean
isGeLast(TOP fs)
private boolean
isGtLast(TOP fs)
private boolean
isInRange(TOP fs)
private boolean
isInRangeHigher(TOP fs)
private boolean
isInRangeLower(TOP fs)
private boolean
isLeFirst(TOP fs)
private boolean
isLtFirst(TOP fs)
java.util.Iterator<TOP>
iterator()
TOP
last()
TOP
lower(TOP fs)
TOP
pollFirst()
TOP
pollLast()
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
int
size()
java.util.NavigableSet<TOP>
subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1)
java.util.SortedSet<TOP>
subSet(TOP fromElement1, TOP toElement1)
java.util.SortedSet<TOP>
tailSet(TOP fromElement1)
java.util.NavigableSet<TOP>
tailSet(TOP fromElement1, boolean inclusive)
private OrderedFsSet_array2
theSet()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] a1)
-
-
-
Field Detail
-
theSet
final java.util.function.Supplier<OrderedFsSet_array2> theSet
-
fromElement
private final TOP fromElement
-
toElement
private final TOP toElement
-
fromInclusive
private final boolean fromInclusive
-
toInclusive
private final boolean toInclusive
-
firstPosInRange
private final int firstPosInRange
-
lastPosInRange
private final int lastPosInRange
-
firstElementInRange
private final TOP firstElementInRange
-
lastElementInRange
private final TOP lastElementInRange
-
sizeSubSet
private int sizeSubSet
-
-
Constructor Detail
-
SubSet
SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive)
-
SubSet
SubSet(java.util.function.Supplier<OrderedFsSet_array2> theSet, TOP fromElement, boolean fromInclusive, TOP toElement, boolean toInclusive, boolean doTest, java.util.Comparator<TOP> comparator)
-
-
Method Detail
-
theSet
private OrderedFsSet_array2 theSet()
-
comparator
public java.util.Comparator<? super TOP> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<TOP>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a1)
-
add
public boolean add(TOP e)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends TOP> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
iterator
public java.util.Iterator<TOP> iterator()
-
descendingSet
public java.util.NavigableSet<TOP> descendingSet()
- Specified by:
descendingSet
in interfacejava.util.NavigableSet<TOP>
-
descendingIterator
public java.util.Iterator<TOP> descendingIterator()
- Specified by:
descendingIterator
in interfacejava.util.NavigableSet<TOP>
-
subSet
public java.util.NavigableSet<TOP> subSet(TOP fromElement1, boolean fromInclusive1, TOP toElement1, boolean toInclusive1)
- Specified by:
subSet
in interfacejava.util.NavigableSet<TOP>
-
headSet
public java.util.NavigableSet<TOP> headSet(TOP toElement1, boolean inclusive)
- Specified by:
headSet
in interfacejava.util.NavigableSet<TOP>
-
tailSet
public java.util.NavigableSet<TOP> tailSet(TOP fromElement1, boolean inclusive)
- Specified by:
tailSet
in interfacejava.util.NavigableSet<TOP>
-
isGtLast
private boolean isGtLast(TOP fs)
-
isGeLast
private boolean isGeLast(TOP fs)
-
isLtFirst
private boolean isLtFirst(TOP fs)
-
isLeFirst
private boolean isLeFirst(TOP fs)
-
isInRange
private boolean isInRange(TOP fs)
-
isInRangeLower
private boolean isInRangeLower(TOP fs)
-
isInRangeHigher
private boolean isInRangeHigher(TOP fs)
-
-