org.openmdx.base.collection
Class MarshallingSparseArray

java.lang.Object
  extended by org.openmdx.base.collection.AbstractSparseArray
      extended by 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

Field Summary
protected  SortedMap populationMap
           
 
Constructor Summary
MarshallingSparseArray(CollectionMarshaller marshaller, SparseArray sparseArray)
          Constructor
MarshallingSparseArray(Marshaller marshaller, SparseArray sparseArray)
          Constructor
 
Method Summary
 SortedMap populationMap()
          Returns a map view of this sparse array's populated elements.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

populationMap

protected SortedMap populationMap
Constructor Detail

MarshallingSparseArray

public MarshallingSparseArray(CollectionMarshaller marshaller,
                              SparseArray sparseArray)
Constructor

Parameters:
marshaller -
sparseArray -

MarshallingSparseArray

public MarshallingSparseArray(Marshaller marshaller,
                              SparseArray sparseArray)
Constructor

Parameters:
marshaller -
sparseArray -
Method Detail

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.