public abstract static class Enrichers.AbstractUpdatingMapBuilder<S,TKey,TVal,B extends Enrichers.AbstractUpdatingMapBuilder<S,TKey,TVal,B>> extends Enrichers.AbstractEnricherBuilder<B>
Constructor and Description |
---|
Enrichers.AbstractUpdatingMapBuilder(AttributeSensor<java.util.Map<TKey,TVal>> target) |
Modifier and Type | Method and Description |
---|---|
EnricherSpec<?> |
build() |
B |
computing(com.google.common.base.Function<S,? extends TVal> val) |
<S2 extends S> |
from(AttributeSensor<S2> fromSensor) |
B |
key(TKey key)
sets an explicit key to use; defaults to using the name of the source sensor specified in
from(AttributeSensor) |
B |
removingIfResultIsNull(boolean val)
sets explicit behaviour for treating
null return values;
default is to remove |
java.lang.String |
toString() |
addTag, suppressDuplicates, uniqueTag
public Enrichers.AbstractUpdatingMapBuilder(AttributeSensor<java.util.Map<TKey,TVal>> target)
public <S2 extends S> Enrichers.UpdatingMapBuilder<S2,TKey,TVal> from(AttributeSensor<S2> fromSensor)
public B key(TKey key)
from(AttributeSensor)
public B removingIfResultIsNull(boolean val)
null
return values;
default is to removepublic EnricherSpec<?> build()
public java.lang.String toString()
toString
in class java.lang.Object