Class ContainerSortedSet<E>
- java.lang.Object
-
- org.eclipse.net4j.util.event.Notifier
-
- org.eclipse.net4j.util.container.delegate.AbstractDelegator<E>
-
- org.eclipse.net4j.util.container.delegate.ContainerCollection<E>
-
- org.eclipse.net4j.util.container.delegate.ContainerSet<E>
-
- org.eclipse.net4j.util.container.delegate.ContainerSortedSet<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
,java.util.SortedSet<E>
,IContainerCollection<E>
,IContainerSet<E>
,IContainerSortedSet<E>
,IContainer<E>
,INotifier
,INotifier.INotifier2
public class ContainerSortedSet<E> extends ContainerSet<E> implements IContainerSortedSet<E>
A default implementation of acontainer sorted set
.- Author:
- Eike Stepper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
AbstractDelegator.DelegatingIterator
-
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
-
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
-
Constructor Summary
Constructors Constructor Description ContainerSortedSet(java.util.SortedSet<E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<? super E>
comparator()
E
first()
java.util.SortedSet<E>
getDelegate()
java.util.SortedSet<E>
headSet(E toElement)
E
last()
java.util.SortedSet<E>
subSet(E fromElement, E toElement)
java.util.SortedSet<E>
tailSet(E fromElement)
-
Methods inherited from class org.eclipse.net4j.util.container.delegate.ContainerCollection
add, addAll, clear, contains, containsAll, equals, getElements, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
createEvent, dispatchEvent, fireAddedEvent, fireRemovedEvent
-
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
-
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
-
-
-
Constructor Detail
-
ContainerSortedSet
public ContainerSortedSet(java.util.SortedSet<E> delegate)
-
-
Method Detail
-
getDelegate
public java.util.SortedSet<E> getDelegate()
- Specified by:
getDelegate
in interfaceIContainerCollection<E>
- Specified by:
getDelegate
in interfaceIContainerSet<E>
- Specified by:
getDelegate
in interfaceIContainerSortedSet<E>
- Overrides:
getDelegate
in classContainerSet<E>
-
comparator
public java.util.Comparator<? super E> comparator()
- Specified by:
comparator
in interfacejava.util.SortedSet<E>
- Category
- READ
-
headSet
public java.util.SortedSet<E> headSet(E toElement)
- Specified by:
headSet
in interfacejava.util.SortedSet<E>
- Category
- READ
-
subSet
public java.util.SortedSet<E> subSet(E fromElement, E toElement)
- Specified by:
subSet
in interfacejava.util.SortedSet<E>
- Category
- READ
-
-