#include <coherence/util/LinkedList.hpp>
Inherits SubList.
SubLinkedList delegates through the the LinkedList for all modification operations
Public Types | |||||||
typedef spec::Handle | Handle | ||||||
SubLinkedList Handle definition. | |||||||
typedef spec::View | View | ||||||
SubLinkedList View definition. | |||||||
typedef spec::Holder | Holder | ||||||
SubLinkedList Holder definition. | |||||||
Public Member Functions | |||||||
virtual bool | retainAll (Collection::View vColl) | ||||||
Remove all elements from this collection that are not present in the supplied collection.
This implementation will throw a coherence::lang::UnsupportedOperationException unless remove() is overridden (assuming there are items to be removed by the operation). | |||||||
virtual void | clear () | ||||||
Remove all elements from this collection.
This implementation will throw a coherence::lang::UnsupportedOperationException. | |||||||
virtual List::View | subList (size32_t fromIndex, size32_t toIndex) const | ||||||
Return a new list containing the contents of the list between the specified fromIndex (inclusive) and toIndex (exclusive).
| |||||||
virtual List::Handle | subList (size32_t fromIndex, size32_t toIndex) | ||||||
Return a new list containing the contents of the list between the specified fromIndex (inclusive) and toIndex (exclusive).
| |||||||
Protected Member Functions | |||||||
SubLinkedList (size32_t fromIndex, size32_t toIndex, List::Holder ohList) | |||||||
create a new SubLinkedList. |
SubLinkedList | ( | size32_t | fromIndex, | |
size32_t | toIndex, | |||
List::Holder | ohList | |||
) | [protected] |
create a new SubLinkedList.
fromIndex | the starting point of the sublist in the list provided (inclusive). | |
toIndex | the end point of the sublist in the list provided (exclusive) | |
ohList | the list to create a sublist of |