org.jmythapi.impl
Class ResultList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by org.jmythapi.impl.ResultList<E>
Type Parameters:
E - the type of the item contained in the list
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
Direct Known Subclasses:
StorageGroup

public class ResultList<E>
extends ArrayList<E>
implements List<E>

Just a helper class to generate a nicer toString on some result lists.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ResultList()
          Creates an empty result list.
ResultList(Collection<E> items)
          Creates a result list and appends the given items.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

ResultList

public ResultList()
Creates an empty result list.


ResultList

public ResultList(Collection<E> items)
Creates a result list and appends the given items.

Parameters:
items - the items to add
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractCollection<E>


Copyright © 2008-2013. All Rights Reserved.