water.util
Class Utils.IcedArrayList<T extends Iced>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by water.util.Utils.IcedArrayList<T>
Type Parameters:
T -
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess, Freezable
Enclosing class:
Utils

public static class Utils.IcedArrayList<T extends Iced>
extends java.util.ArrayList<T>
implements Freezable

Simple wrapper around ArrayList with support for H2O serialization

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Utils.IcedArrayList()
           
 
Method Summary
 int frozenType()
          Return the cluster-wide-unique 2-byte type ID for instances of this class
<T2 extends Freezable>
T2
newInstance()
          Make a new instance of class 'this' with the empty constructor
 Utils.IcedArrayList<T> read(AutoBuffer bb)
          Deserialize from the AutoBuffer into a pre-existing 'this' object.
 DocGen.FieldDoc[] toDocField()
          Reflective list of fields
 AutoBuffer write(AutoBuffer bb)
          Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
 AutoBuffer writeJSONFields(AutoBuffer bb)
          Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
 
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, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Utils.IcedArrayList

public Utils.IcedArrayList()
Method Detail

write

public AutoBuffer write(AutoBuffer bb)
Description copied from interface: Freezable
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.

Specified by:
write in interface Freezable

read

public Utils.IcedArrayList<T> read(AutoBuffer bb)
Description copied from interface: Freezable
Deserialize from the AutoBuffer into a pre-existing 'this' object.

Specified by:
read in interface Freezable

newInstance

public <T2 extends Freezable> T2 newInstance()
Description copied from interface: Freezable
Make a new instance of class 'this' with the empty constructor

Specified by:
newInstance in interface Freezable

frozenType

public int frozenType()
Description copied from interface: Freezable
Return the cluster-wide-unique 2-byte type ID for instances of this class

Specified by:
frozenType in interface Freezable

writeJSONFields

public AutoBuffer writeJSONFields(AutoBuffer bb)
Description copied from interface: Freezable
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer. Output is legal JSON.

Specified by:
writeJSONFields in interface Freezable

toDocField

public DocGen.FieldDoc[] toDocField()
Description copied from interface: Freezable
Reflective list of fields

Specified by:
toDocField in interface Freezable