| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. Removes all of the mappings from this map. |
| public Cookie | compute(String
key with which the specified value is to be associated key, BiFunction<? super String, ? super Cookie, ? extends Cookie> the remapping function to compute a value remappingFunction)Overrides java. Overrides default java. Attempts to compute a mapping for the specified key and its current
mapped value, or |
| public Cookie | computeIfAbsent(final String
key with which the specified value is to be associated key, final Function<? super String, ? extends Cookie> the mapping function to compute a value mappingFunction)Overrides java. Overrides default java. If the specified key is not already associated with a value (or is mapped
to |
| public Cookie | computeIfPresent(String
key with which the specified value is to be associated key, BiFunction<? super String, ? super Cookie, ? extends Cookie> the remapping function to compute a value remappingFunction)Overrides java. Overrides default java. If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation). |
| public boolean | containsKey(final Object
The key whose presence in this map is to be tested key)Overrides java. Implements java. Returns |
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Overrides java. Implements java. Returns |
| public Set | entrySet()
Overrides java. Implements java. Returns a |
| public void | forEach(BiConsumer<? super String, ? super Cookie>
The action to be performed for each entry action)Overrides java. Overrides default java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| public Cookie | get(final Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
| public Cookie | getOrDefault(final Object
the key whose associated value is to be returned key, final Cookie the default mapping of the key defaultValue)Overrides java. Overrides default java. Returns the value to which the specified key is mapped, or
|
| public boolean | isEmpty()
Overrides java. Implements java. Returns |
| public Set | keySet()
Overrides java. Implements java. Returns a |
| public Cookie | merge(String
key with which the resulting value is to be associated key, Cookie the non-null value to be merged with the existing value
associated with the key or, if no existing value or a null value
is associated with the key, to be associated with the key value, BiFunction<? super Cookie, ? super Cookie, ? extends Cookie> the remapping function to recompute a value if
present remappingFunction)Overrides java. Overrides default java. If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value (optional operation). |
| public Cookie | put(final String
key with which the specified value is to be associated key, final Cookie value to be associated with the specified key value)Overrides java. Implements java. Associates the specified value with the specified key in this map. |
| public void | putAll(final Map<? extends String, ? extends Cookie>
mappings to be stored in this map m)Overrides java. Implements java. Copies all of the mappings from the specified map to this map. |
| public Cookie | putIfAbsent(final String
key with which the specified value is to be associated key, final Cookie value to be associated with the specified key value)Overrides java. Overrides default java. If the specified key is not already associated with a value (or is mapped
to |
| public Cookie | remove(final Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. Removes the mapping for the specified key from this map if present. |
| public boolean | remove(final Object
key with which the specified value is associated key, final Object value expected to be associated with the specified key value)Overrides java. Overrides default java. Removes the entry for the specified key only if it is currently mapped to the specified value (optional operation). |
| public boolean | replace(final String
key with which the specified value is associated key, final Cookie value expected to be associated with the specified key oldValue, final Cookie value to be associated with the specified key newValue)Overrides java. Overrides default java. Replaces the entry for the specified key only if currently mapped to the specified value (optional operation). |
| public Cookie | replace(final String
key with which the specified value is associated key, final Cookie value to be associated with the specified key value)Overrides java. Overrides default java. Replaces the entry for the specified key only if it is currently mapped to some value (optional operation). |
| public void | replaceAll(BiFunction<? super String, ? super Cookie, ? extends Cookie>
the function to apply to each entry function)Overrides java. Overrides default java. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception (optional operation). |
| public int | size()
Overrides java. Implements java. Returns the number of key-value mappings in this map. |
| public Collection | values()
Overrides java. Implements java. Returns a |
| delegate | back to summary |
|---|---|
| private final Set<Cookie> delegate | |
| MapDelegatingToSet | back to summary |
|---|---|
| pack-priv MapDelegatingToSet(final Set<Cookie> delegate) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map. The map will be empty after this call returns.
| |
| compute | back to summary |
|---|---|
| public Cookie compute(String key, BiFunction<? super String, ? super Cookie, ? extends Cookie> remappingFunction) Overrides java. Overrides default java. Doc from java. Attempts to compute a mapping for the specified key and its current
mapped value, or
(Method merge() is often simpler to use for such purposes.)
If the remapping function returns The remapping function should not modify this map during computation. This method will, on a best-effort basis, throw a
| |
| computeIfAbsent | back to summary |
|---|---|
| public Cookie computeIfAbsent(final String key, final Function<? super String, ? extends Cookie> mappingFunction) Overrides java. Overrides default java. Doc from java. If the specified key is not already associated with a value (or is mapped
to If the mapping function returns
Or to implement a multi-value map,
The mapping function should not modify this map during computation. This method will, on a best-effort basis, throw a
| |
| computeIfPresent | back to summary |
|---|---|
| public Cookie computeIfPresent(String key, BiFunction<? super String, ? super Cookie, ? extends Cookie> remappingFunction) Overrides java. Overrides default java. Doc from java. If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation). If the remapping function returns The remapping function should not modify this map during computation. This method will, on a best-effort basis, throw a
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Overrides java. Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final Object value) Overrides java. Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Overrides java. Implements java. Doc from java. Returns a | |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super String, ? super Cookie> action) Overrides java. Overrides default java. Doc from java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
| |
| get | back to summary |
|---|---|
| public Cookie get(final Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
A return value of
| |
| getOrDefault | back to summary |
|---|---|
| public Cookie getOrDefault(final Object key, final Cookie defaultValue) Overrides java. Overrides default java. Doc from java. Returns the value to which the specified key is mapped, or
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Overrides java. Implements java. Doc from java. Returns a | |
| merge | back to summary |
|---|---|
| public Cookie merge(String key, Cookie value, BiFunction<? super Cookie, ? super Cookie, ? extends Cookie> remappingFunction) Overrides java. Overrides default java. Doc from java. If the specified key is not already associated with a value or is
associated with null, associates it with the given non-null value (optional
operation). Otherwise, replaces the associated value with the results of
the given remapping function, or removes if the result is
If the remapping function returns The remapping function should not modify this map during computation. This method will, on a best-effort basis, throw a
| |
| put | back to summary |
|---|---|
| public Cookie put(final String key, final Cookie value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced.
| |
| putAll | back to summary |
|---|---|
| public void putAll(final Map<? extends String, ? extends Cookie> m) Overrides java. Implements java. Doc from java. Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map. | |
| putIfAbsent | back to summary |
|---|---|
| public Cookie putIfAbsent(final String key, final Cookie value) Overrides java. Overrides default java. Doc from java. If the specified key is not already associated with a value (or is mapped
to
| |
| remove | back to summary |
|---|---|
| public Cookie remove(final Object key) Overrides java. Implements java. Doc from java. Removes the mapping for the specified key from this map if present. | |
| remove | back to summary |
|---|---|
| public boolean remove(final Object key, final Object value) Overrides java. Overrides default java. Doc from java. Removes the entry for the specified key only if it is currently mapped to the specified value (optional operation). | |
| replace | back to summary |
|---|---|
| public boolean replace(final String key, final Cookie oldValue, final Cookie newValue) Overrides java. Overrides default java. Doc from java. Replaces the entry for the specified key only if currently mapped to the specified value (optional operation). | |
| replace | back to summary |
|---|---|
| public Cookie replace(final String key, final Cookie value) Overrides java. Overrides default java. Doc from java. Replaces the entry for the specified key only if it is currently mapped to some value (optional operation).
| |
| replaceAll | back to summary |
|---|---|
| public void replaceAll(BiFunction<? super String, ? super Cookie, ? extends Cookie> function) Overrides java. Overrides default java. Doc from java. Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception (optional operation). Exceptions thrown by the function are relayed to the caller.
| |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map.
| |
| values | back to summary |
|---|---|
| public Collection Overrides java. Implements java. Doc from java. Returns a
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Cookie | |
| public Cookie | setValue(final Cookie
new value to be stored in this entry cookie)Implements java. Replaces the value corresponding to this entry with the specified value (optional operation). |
| key | back to summary |
|---|---|
| private final String key | |
| value | back to summary |
|---|---|
| private final Cookie value | |
| ReadOnlyEntry | back to summary |
|---|---|
| private ReadOnlyEntry(final String key, final Cookie value) | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getValue | back to summary |
|---|---|
| public Cookie getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public Cookie setValue(final Cookie cookie) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |