org.openmdx.base.collection
Class MarshallingSparseArray
java.lang.Object
org.openmdx.base.collection.AbstractSparseArray
org.openmdx.base.collection.MarshallingSparseArray
- All Implemented Interfaces:
- Serializable, Iterable, Collection, SparseArray
public class MarshallingSparseArray
- extends AbstractSparseArray
- implements Serializable
A Marshalling Sparse Array
- See Also:
- Serialized Form
| Methods inherited from class org.openmdx.base.collection.AbstractSparseArray |
add, addAll, asList, clear, contains, containsAll, end, get, indexOf, isEmpty, iterator, lowerBound, populationIterator, populationIterator, remove, remove, removeAll, retainAll, set, setAll, size, start, subArray, toArray, toArray, toString |
populationMap
protected SortedMap populationMap
MarshallingSparseArray
public MarshallingSparseArray(CollectionMarshaller marshaller,
SparseArray sparseArray)
- Constructor
- Parameters:
marshaller - sparseArray -
MarshallingSparseArray
public MarshallingSparseArray(Marshaller marshaller,
SparseArray sparseArray)
- Constructor
- Parameters:
marshaller - sparseArray -
populationMap
public SortedMap populationMap()
- Description copied from class:
AbstractSparseArray
- Returns a map view of this sparse array's populated elements. The map's
iterator will return the entries in ascending order. The map is backed
by the sparse array, so changes to the sparse array are reflected in
the map, and vice-versa. If the sparse array is modified while an
iteration over the map is in progress, the results of the iteration are
undefined. The map supports element removal, which removes the
corresponding entry from the sparse array, via the Iterator.remove,
Map.remove, removeAll retainAll, and clear operations. It does not
support the add or addAll operations.
- Specified by:
populationMap in interface SparseArray- Specified by:
populationMap in class AbstractSparseArray
- Returns:
- a map view of this sparse array's populated elements
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.