org.cipango.diameter
Class AVPList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<AVP<?>>
          extended by org.cipango.diameter.AVPList
All Implemented Interfaces:
java.lang.Iterable<AVP<?>>, java.util.Collection<AVP<?>>, java.util.List<AVP<?>>

public class AVPList
extends java.util.AbstractList<AVP<?>>

A list of AVPs. Used for diameter messages and AVP of Grouped type.

See Also:
Common.__grouped

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AVPList()
           
 
Method Summary
 void add(int index, AVP<?> avp)
           
<T> void
add(Type<T> type, T value)
           
 AVP<?> get(int index)
           
<T> AVP<T>
get(Type<T> type)
           
<T> java.util.Iterator<AVP<T>>
getAVPs(Type<T> type)
           
<T> T
getValue(Type<T> type)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, 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, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AVPList

public AVPList()
Method Detail

get

public <T> AVP<T> get(Type<T> type)

getValue

public <T> T getValue(Type<T> type)

add

public void add(int index,
                AVP<?> avp)
Specified by:
add in interface java.util.List<AVP<?>>
Overrides:
add in class java.util.AbstractList<AVP<?>>

add

public <T> void add(Type<T> type,
                    T value)

get

public AVP<?> get(int index)
Specified by:
get in interface java.util.List<AVP<?>>
Specified by:
get in class java.util.AbstractList<AVP<?>>

size

public int size()
Specified by:
size in interface java.util.Collection<AVP<?>>
Specified by:
size in interface java.util.List<AVP<?>>
Specified by:
size in class java.util.AbstractCollection<AVP<?>>

getAVPs

public <T> java.util.Iterator<AVP<T>> getAVPs(Type<T> type)


Copyright © 2010. All Rights Reserved.