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
ConstructorDescriptionConstructor.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 NamedAttributeMap
create()
Static creator.static NamedAttributeMap
of
(NamedAttribute... values) Static creator.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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.
-
copy
Creates a copy of this list.- Returns:
- A new copy of this list.
-
add
Appends the specified rest matcher classes to the list.- Parameters:
values
- The values to add.- Returns:
- This object.
-