E
- @StoreNotUseStandardSerialization @StorableClass public class PTreeSubSet<E> extends AbstractPTreeSet<E> implements Serializable
Modifier and Type | Field and Description |
---|---|
protected E |
fromElement |
protected boolean |
fromInclusive |
protected E |
toElement |
protected boolean |
toInclusive |
instanceFactory, treeSupport
Constructor and Description |
---|
PTreeSubSet(TreeSupport<E> treeSupport,
E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
void |
addListerner(ICollectionListener<E> listener) |
E |
ceiling(E element) |
void |
clear()
clear the subset
|
boolean |
contains(Object object) |
Iterator<E> |
descendingIterator() |
ListIterator<E> |
descendingListIterator() |
NavigableSet<E> |
descendingSet() |
E |
first() |
E |
floor(E element) |
E |
get(Object object)
get the real instance of object equals to reference object
|
SortedSet<E> |
headSet(E toElement) |
NavigableSet<E> |
headSet(E toElement,
boolean toInclusive) |
E |
higher(E element) |
protected boolean |
inSubset(E element) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
E |
last() |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
lower(E element) |
static PTreeSubSet |
newInstance(IInstanceFactory instanceFactory,
TreeSupport treeSupport,
Object fromElement,
boolean fromInclusive,
Object toElement,
boolean toInclusive) |
void |
notifyAdded(E added) |
void |
notifyRemoved(E removed) |
E |
pollFirst() |
E |
pollLast() |
boolean |
remove(Object object) |
void |
removeListener(int listenerIdentifier) |
int |
size() |
NavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
SortedSet<E> |
subSet(E fromElement,
E toElement) |
SortedSet<E> |
tailSet(E fromElement) |
NavigableSet<E> |
tailSet(E fromElement,
boolean fromInclusive) |
addOrReplace, clone, comparator, getComparator, getTree, getTreeSupport, removeAndGetRemoved, setTreeSupport
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
protected final E fromElement
protected final boolean fromInclusive
protected final E toElement
protected final boolean toInclusive
public PTreeSubSet(TreeSupport<E> treeSupport, E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
treeSupport
- tree tree support this set usefromElement
- low end point of this subset viewfromInclusive
- true
if the low end point is to be included in this
subset viewtoElement
- high end point of this subset viewtoInclusive
- true
if the high end point is to be included in this
subset viewpublic static PTreeSubSet newInstance(IInstanceFactory instanceFactory, TreeSupport treeSupport, Object fromElement, boolean fromInclusive, Object toElement, boolean toInclusive)
public boolean add(E element)
add
in interface Collection<E>
add
in interface Set<E>
add
in class AbstractPTreeSet<E>
public boolean contains(Object object)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractPTreeSet<E>
public boolean remove(Object object)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractPTreeSet<E>
public ListIterator<E> listIterator()
listIterator
in interface IPTreeSet<E>
listIterator
in class AbstractPTreeSet<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface IPTreeSet<E>
listIterator
in class AbstractPTreeSet<E>
public Iterator<E> iterator()
iterator
in interface Iterable<E>
iterator
in interface Collection<E>
iterator
in interface NavigableSet<E>
iterator
in interface Set<E>
iterator
in class AbstractPTreeSet<E>
public Iterator<E> descendingIterator()
descendingIterator
in interface NavigableSet<E>
descendingIterator
in class AbstractPTreeSet<E>
public ListIterator<E> descendingListIterator()
descendingListIterator
in interface IPTreeSet<E>
descendingListIterator
in class AbstractPTreeSet<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface Set<E>
isEmpty
in class AbstractPTreeSet<E>
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractPTreeSet<E>
public void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class AbstractPTreeSet<E>
public NavigableSet<E> descendingSet()
descendingSet
in interface NavigableSet<E>
descendingSet
in class AbstractPTreeSet<E>
public NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface NavigableSet<E>
subSet
in class AbstractPTreeSet<E>
public SortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface NavigableSet<E>
subSet
in interface SortedSet<E>
subSet
in class AbstractPTreeSet<E>
public NavigableSet<E> headSet(E toElement, boolean toInclusive)
headSet
in interface NavigableSet<E>
headSet
in class AbstractPTreeSet<E>
public SortedSet<E> headSet(E toElement)
headSet
in interface NavigableSet<E>
headSet
in interface SortedSet<E>
headSet
in class AbstractPTreeSet<E>
public NavigableSet<E> tailSet(E fromElement, boolean fromInclusive)
tailSet
in interface NavigableSet<E>
tailSet
in class AbstractPTreeSet<E>
public SortedSet<E> tailSet(E fromElement)
tailSet
in interface NavigableSet<E>
tailSet
in interface SortedSet<E>
tailSet
in class AbstractPTreeSet<E>
public E lower(E element)
lower
in interface NavigableSet<E>
lower
in class AbstractPTreeSet<E>
public E floor(E element)
floor
in interface NavigableSet<E>
floor
in class AbstractPTreeSet<E>
public E ceiling(E element)
ceiling
in interface NavigableSet<E>
ceiling
in class AbstractPTreeSet<E>
public E higher(E element)
higher
in interface NavigableSet<E>
higher
in class AbstractPTreeSet<E>
public E first()
public E last()
public E pollFirst()
pollFirst
in interface NavigableSet<E>
pollFirst
in class AbstractPTreeSet<E>
public E pollLast()
pollLast
in interface NavigableSet<E>
pollLast
in class AbstractPTreeSet<E>
public E get(Object object)
IPSet
protected boolean inSubset(E element)
public void notifyAdded(E added)
notifyAdded
in interface ISupportListener<E>
public void notifyRemoved(E removed)
notifyRemoved
in interface ISupportListener<E>
public void addListerner(ICollectionListener<E> listener)
addListerner
in interface ICollectionListenable<E>
public void removeListener(int listenerIdentifier)
removeListener
in interface ICollectionListenable<E>
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.