Package com.bea.wcp.diameter
Class AvpList
- All Implemented Interfaces:
Serializable,Iterable<Avp>,Collection<Avp>,List<Avp>
An AvpList is used to represent the AVPs of a Diameter message or the
AVPs contained within a grouped AVP.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdds a new AVP to the list of AVPs.voidAdds a new AVP by name to the list of AVPs.voiddecode(ByteBuffer bb) encode(ByteBuffer bb) get(int i) Returns the first AVP for the specified Attribute, or null if none.Returns the first AVP for the specific attribute name, or null if noneReturns the last AVP for the specified Attribute, or null if none.remove(int i) intsize()toString()Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
AvpList
public AvpList()Creates a new empty AvpList. -
AvpList
-
-
Method Details
-
decode
-
encode
-
get
Returns the first AVP for the specified Attribute, or null if none.- Parameters:
attr- the Attribute to search for- Returns:
- the AVP with the attribute, or null if none
-
get
Returns the first AVP for the specific attribute name, or null if none- Parameters:
name- the attribute name- Returns:
- the AVP with the attribute, or null if none
-
getLast
Returns the last AVP for the specified Attribute, or null if none.- Parameters:
attr- the Attribute to search for- Returns:
- the last AVP with the Attribute, or null if none
-
add
Adds a new AVP to the list of AVPs.- Parameters:
attr- the AVP attributevalue- the AVP value- See Also:
-
add
Adds a new AVP by name to the list of AVPs.- Parameters:
name- the AVP attribute namevalue- the AVP value
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<Avp>- Specified by:
sizein interfaceList<Avp>- Specified by:
sizein classAbstractCollection<Avp>
-
set
-
add
-
remove
-
toString
- Overrides:
toStringin classAbstractCollection<Avp>
-
appendXml
-