Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47891-01

LinkedList::SubLinkedList Class Reference

#include <coherence/util/LinkedList.hpp>

Inherits SubList.

List of all members.


Detailed Description

Utility class to implement a SubList of a LinkedList.

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.

Parameters:
vCol the collection of elements to retain
Returns:
true iff this collection was modified as a result of this operation.
Exceptions:
coherence::lang::NullPointerException if the specified collection is NULL
See also:
remove()

contains()

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).

Parameters:
iFrom the start position in this list to create the sublist from (inclusive).
iTo the end position in this list to end the sublist at (exclusive).
Returns:
the new sublist of this list

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).

Parameters:
iFrom the start position in this list to create the sublist from (inclusive).
iTo the end position in this list to end the sublist at (exclusive).
Returns:
the new sublist of this list


Protected Member Functions

 SubLinkedList (size32_t fromIndex, size32_t toIndex, List::Holder ohList)
 create a new SubLinkedList.


Constructor & Destructor Documentation

SubLinkedList ( size32_t  fromIndex,
size32_t  toIndex,
List::Holder  ohList 
) [protected]

create a new SubLinkedList.

Parameters:
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
Returns:
a new SubLinkedList


The documentation for this class was generated from the following file:
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.