Package org.apache.juneau.rest.httppart
Class NamedAttributeMap
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,NamedAttribute>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.NamedAttributeMap(NamedAttributeMap copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(NamedAttribute... values) Appends the specified rest matcher classes to the list.copy()Creates a copy of this list.static NamedAttributeMapcreate()Static creator.static NamedAttributeMapof(NamedAttribute... values) Static creator.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
NamedAttributeMap
public NamedAttributeMap()Constructor. -
NamedAttributeMap
Copy constructor.- Parameters:
copyFrom- The list to copy from.
-
-
Method Details
-
create
Static creator.- Returns:
- An empty list.
-
of
Static creator.- Parameters:
values- The initial contents of this list.- Returns:
- An empty list.
-
add
Appends the specified rest matcher classes to the list.- Parameters:
values- The values to add.- Returns:
- This object.
-
copy
Creates a copy of this list.- Returns:
- A new copy of this list.
-