Modifier and Type | Method | Description |
---|---|---|
static <T> Metadata.Key<T> |
Metadata.Key.of(java.lang.String name,
Metadata.AsciiMarshaller<T> marshaller) |
Creates a key for an ASCII header.
|
static <T> Metadata.Key<T> |
Metadata.Key.of(java.lang.String name,
Metadata.BinaryMarshaller<T> marshaller) |
Creates a key for a binary header.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
Metadata.containsKey(Metadata.Key<?> key) |
Returns true if a value is defined for the given key.
|
<T> void |
Metadata.discardAll(Metadata.Key<T> key) |
Remove all values for the given key without returning them.
|
<T> T |
Metadata.get(Metadata.Key<T> key) |
Returns the last metadata entry added with the name 'name' parsed as T.
|
<T> java.lang.Iterable<T> |
Metadata.getAll(Metadata.Key<T> key) |
Returns all the metadata entries named 'name', in the order they were received, parsed as T, or
null if there are none.
|
<T> void |
Metadata.put(Metadata.Key<T> key,
T value) |
Adds the
key, value pair. |
<T> boolean |
Metadata.remove(Metadata.Key<T> key,
T value) |
Removes the first occurrence of
value for key . |
<T> java.lang.Iterable<T> |
Metadata.removeAll(Metadata.Key<T> key) |
Remove all values for the given key.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Metadata.merge(Metadata other,
java.util.Set<Metadata.Key<?>> keys) |
Merge values from the given set of keys into this set of metadata.
|