- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Parameter>, Collection<Parameter>, List<Parameter>, RandomAccess, SequencedCollection<Parameter>
A collection of Parameter objects that extends Vector. This class provides methods to manage and retrieve parameters by name or index, commonly used for handling HTTP query parameters, form data, and headers.
- See Also:
Field Summary
Fields inherited from class Vector
capacityIncrement, elementCount, elementDataFields inherited from class AbstractList
modCountConstructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionat(int n) Gets the Parameter at the specified index.getParameter(int n) Gets the Parameter at the specified index.getParameter(String name) Gets the Parameter with the specified name.Gets the value of the Parameter with the specified name.Methods inherited from class Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
Constructor Details
ParameterList
public ParameterList()Creates a new empty ParameterList.
Method Details
at
Gets the Parameter at the specified index.- Parameters:
n- the index of the parameter to retrieve- Returns:
- the Parameter at the specified index
getParameter
Gets the Parameter at the specified index.- Parameters:
n- the index of the parameter to retrieve- Returns:
- the Parameter at the specified index
getParameter
getValue