@Immutable public class EmptyBaggage extends Object implements Baggage
Baggage that does not contain any entries.Baggage.Builder| Modifier and Type | Method and Description |
|---|---|
Collection<Entry> |
getEntries()
Returns an immutable collection of the entries in this
Baggage. |
String |
getEntryValue(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 Collection<Entry> getEntries()
BaggageBaggage. Order of entries is not
guaranteed.getEntries in interface BaggageBaggage.@Nullable public String getEntryValue(String entryKey)
BaggageString associated with the given key.getEntryValue in interface BaggageentryKey - entry key to return the value for.null if no Entry with the
given entryKey is in this Baggage.