Package com.helger.commons.url
Class URLParameterList
java.lang.Object
java.util.AbstractCollection<URLParameter>
java.util.AbstractList<URLParameter>
java.util.ArrayList<URLParameter>
com.helger.commons.collection.impl.CommonsArrayList<URLParameter>
com.helger.commons.url.URLParameterList
- All Implemented Interfaces:
ICommonsCollection<URLParameter>,ICommonsIterable<URLParameter>,ICommonsList<URLParameter>,ICloneable<ICommonsList<URLParameter>>,IHasSize,IGenericImplTrait<URLParameterList>,IURLParameterList<URLParameterList>,Serializable,Cloneable,Iterable<URLParameter>,Collection<URLParameter>,List<URLParameter>,RandomAccess,SequencedCollection<URLParameter>
@NotThreadSafe
public class URLParameterList
extends CommonsArrayList<URLParameter>
implements IURLParameterList<URLParameterList>
A list of URL parameters with a sanity API. It allows for multiple URL
parameters with the same name and thereby maintaining the order of the URL
parameters.
- Author:
- Philip Helger
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetAllParamValues(String sName) getClone()getFirstParamValue(String sName) Get the value of the first parameter with the provided nameRemove all parameter with the given name.Remove all parameter with the given name and value.Methods inherited from class com.helger.commons.collection.impl.CommonsArrayList
createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createFiltered, createInstanceMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.helger.commons.collection.impl.ICommonsCollection
addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addAllMapped, addIf, addIfNotNull, addObject, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, iterator2, removeAll, removeObject, set, setAll, setAll, setAllMapped, setAllMappedMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCountMethods inherited from interface com.helger.commons.collection.impl.ICommonsList
getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getFirst, getFirstOrNull, getLast, getLast, getLastOrNull, getSortedInline, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeFirstOrNull, removeLast, removeLastOrNull, reverse, setFirst, setLast, swapItemsMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.lang.IHasSize
isEmpty, isNotEmpty, sizeMethods inherited from interface com.helger.commons.url.IURLParameterList
add, add, add, add, add, add, add, add, addAll, addAll, addAll, addIf, addIfNotNull, addRandomMethods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
URLParameterList
public URLParameterList() -
URLParameterList
-
-
Method Details
-
remove
Remove all parameter with the given name.- Parameters:
sName- The key to remove- Returns:
- this
-
remove
Remove all parameter with the given name and value.- Parameters:
sName- The key to remove. May benull.sValue- The value to be removed. May benull.- Returns:
- this
-
contains
-
contains
-
getAllParamNames
-
getAllParamValues
-
getFirstParamValue
Get the value of the first parameter with the provided name- Parameters:
sName- The parameter name to search- Returns:
nullif no such parameter is present.
-
getAsMultiMap
- Returns:
- A new multi map (map from String to List of String) with all
values. Order may be lost. Never
null.
-
getClone
- Specified by:
getClonein interfaceICloneable<ICommonsList<URLParameter>>- Overrides:
getClonein classCommonsArrayList<URLParameter>- Returns:
- A 100% deep-copy of the implementing class.
-