com.teraspaces.qwfix
Class FIXSchemaFieldCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<FIXSchemaField>
              extended by com.teraspaces.qwfix.FIXSchemaFieldCollection
All Implemented Interfaces:
Serializable, Cloneable, Iterable<FIXSchemaField>, Collection<FIXSchemaField>, List<FIXSchemaField>, RandomAccess

public final class FIXSchemaFieldCollection
extends ArrayList<FIXSchemaField>

Represents a collection of FIXSchemaField. This class cannot be inherited.

See Also:
Serialized Form

Method Summary
 boolean add(FIXSchemaField field)
           
 void add(int index, FIXSchemaField field)
           
 boolean addAll(Collection<? extends FIXSchemaField> c)
           
 boolean addAll(int index, Collection<? extends FIXSchemaField> c)
           
 FIXSchemaField getFieldByName(String name)
          Gets the field by name.
 FIXSchemaField getFieldByTag(int tag)
          Gets the field by tag.
 FIXSchema getSchema()
           
 FIXSchemaField set(int index, FIXSchemaField field)
           
 
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Method Detail

getSchema

public FIXSchema getSchema()

add

public boolean add(FIXSchemaField field)
Specified by:
add in interface Collection<FIXSchemaField>
Specified by:
add in interface List<FIXSchemaField>
Overrides:
add in class ArrayList<FIXSchemaField>

add

public void add(int index,
                FIXSchemaField field)
Specified by:
add in interface List<FIXSchemaField>
Overrides:
add in class ArrayList<FIXSchemaField>

set

public FIXSchemaField set(int index,
                          FIXSchemaField field)
Specified by:
set in interface List<FIXSchemaField>
Overrides:
set in class ArrayList<FIXSchemaField>

addAll

public boolean addAll(Collection<? extends FIXSchemaField> c)
Specified by:
addAll in interface Collection<FIXSchemaField>
Specified by:
addAll in interface List<FIXSchemaField>
Overrides:
addAll in class ArrayList<FIXSchemaField>

addAll

public boolean addAll(int index,
                      Collection<? extends FIXSchemaField> c)
Specified by:
addAll in interface List<FIXSchemaField>
Overrides:
addAll in class ArrayList<FIXSchemaField>

getFieldByTag

public FIXSchemaField getFieldByTag(int tag)
Gets the field by tag.

Parameters:
tag - the tag
Returns:
the field by tag

getFieldByName

public FIXSchemaField getFieldByName(String name)
Gets the field by name.

Parameters:
name - the name
Returns:
the field by name