Baggage.Builder
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Entry> |
getEntries()
Returns an immutable collection of the entries in this
Baggage . |
java.lang.String |
getEntryValue(java.lang.String entryKey)
Returns the
String associated with the given key. |
static Baggage |
getInstance()
Returns the single instance of the
EmptyBaggage class. |
public static Baggage getInstance()
EmptyBaggage
class.EmptyBaggage
class.public java.util.Collection<Entry> getEntries()
Baggage
Baggage
. Order of entries is not
guaranteed.getEntries
in interface Baggage
Baggage
.@Nullable public java.lang.String getEntryValue(java.lang.String entryKey)
Baggage
String
associated with the given key.getEntryValue
in interface Baggage
entryKey
- entry key to return the value for.null
if no Entry
with the
given entryKey
is in this Baggage
.