Top Description Methods
reactor.util.context

pack-priv Interface CoreContext

extends Context
Known Direct Implementers
reactor.util.context.Context0, reactor.util.context.Context1, reactor.util.context.Context2, reactor.util.context.Context3, reactor.util.context.Context4, reactor.util.context.Context5, reactor.util.context.ContextN
Imports
java.util.Map

Abstract base to optimize interactions between reactor core Context implementations.
Author
Simon Baslé

Method Summary

Modifier and TypeMethod and Description
public default boolean
isEmpty()

Overrides default reactor.util.context.ContextView.isEmpty.

Return true if the Context is empty.
public default Context
putAll(ContextView
the other ContextView from which to copy entries
other
)

Overrides default reactor.util.context.Context.putAll.

Create a new Context by merging the content of this context and a given ContextView.
public Context

Returns:

a new context containing all the base values merged with all our values
putAllInto
(Context
the Context in which we're putting all our values
base
)

Let this Context add its internal values to the given base Context, avoiding creating intermediate holders for key-value pairs as much as possible.

public void
unsafePutAllInto(ContextN
the ContextN we're mutating by putting all our values into
other
)

Let this Context add its internal values to the given ContextN, mutating it, but avoiding creating intermediate holders for key-value pairs as much as possible.

Inherited from reactor.util.context.Context:
deleteemptyofofofofofofofputputAllputAllMapputNonNullreadOnly

Method Detail

isEmptyback to summary
public default boolean isEmpty()

Overrides default reactor.util.context.ContextView.isEmpty.

Doc from reactor.util.context.ContextView.isEmpty.

Return true if the Context is empty.

Returns:boolean

true if the Context is empty.

Annotations
@Override
putAllback to summary
public default Context putAll(ContextView other)

Overrides default reactor.util.context.Context.putAll.

Doc from reactor.util.context.Context.putAll.

Create a new Context by merging the content of this context and a given ContextView. If the other context is empty, the same Context instance is returned.

Parameters
other:ContextView

the other ContextView from which to copy entries

Returns:Context

a new Context with a merge of the entries from this context and the given context.

Annotations
@Override
putAllIntoback to summary
public Context putAllInto(Context base)

Let this Context add its internal values to the given base Context, avoiding creating intermediate holders for key-value pairs as much as possible.

Parameters
base:Context

the Context in which we're putting all our values

Returns:Context

a new context containing all the base values merged with all our values

unsafePutAllIntoback to summary
public void unsafePutAllInto(ContextN other)

Let this Context add its internal values to the given ContextN, mutating it, but avoiding creating intermediate holders for key-value pairs as much as possible.

Parameters
other:ContextN

the ContextN we're mutating by putting all our values into