org.openmdx.base.collection
Class MarshallingList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by org.openmdx.base.collection.MarshallingList
All Implemented Interfaces:
Serializable, Iterable, Collection, List

public class MarshallingList
extends AbstractList
implements Serializable

A Marshalling List

See Also:
Serialized Form

Field Summary
protected  List list
           
protected  CollectionMarshaller marshaller
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MarshallingList(CollectionMarshaller marshaller, List list)
          Constructor
MarshallingList(Marshaller marshaller, List list)
          Constructor
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object element)
           
 void clear()
           
 boolean contains(Object candidate)
           
 Object get(int index)
           
 int indexOf(Object candidate)
           
 boolean isEmpty()
           
 int lastIndexOf(Object candidate)
           
 Object remove(int index)
           
 boolean remove(Object candidate)
           
 Object set(int index, Object element)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, iterator, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, removeAll, retainAll, toArray, toArray
 

Field Detail

list

protected List list

marshaller

protected CollectionMarshaller marshaller
Constructor Detail

MarshallingList

public MarshallingList(CollectionMarshaller marshaller,
                       List list)
Constructor

Parameters:
marshaller -
list -

MarshallingList

public MarshallingList(Marshaller marshaller,
                       List list)
Constructor

Parameters:
marshaller -
list -
Method Detail

add

public void add(int index,
                Object element)
Specified by:
add in interface List
Overrides:
add in class AbstractList

add

public boolean add(Object element)
Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class AbstractList

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List
Overrides:
clear in class AbstractList

contains

public boolean contains(Object candidate)
Specified by:
contains in interface Collection
Specified by:
contains in interface List
Overrides:
contains in class AbstractCollection

get

public Object get(int index)
Specified by:
get in interface List
Specified by:
get in class AbstractList

indexOf

public int indexOf(Object candidate)
Specified by:
indexOf in interface List
Overrides:
indexOf in class AbstractList

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List
Overrides:
isEmpty in class AbstractCollection

lastIndexOf

public int lastIndexOf(Object candidate)
Specified by:
lastIndexOf in interface List
Overrides:
lastIndexOf in class AbstractList

remove

public Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class AbstractList

remove

public boolean remove(Object candidate)
Specified by:
remove in interface Collection
Specified by:
remove in interface List
Overrides:
remove in class AbstractCollection

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List
Overrides:
set in class AbstractList

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.