public class StreamBuilderAspectMap extends Object
stream building aspects
in a type safe manner.Constructor and Description |
---|
StreamBuilderAspectMap() |
Modifier and Type | Method and Description |
---|---|
<A> A |
get(StreamBuilderAspectType<A> type)
Get the correctly typed aspect for a type.
|
<A,C extends A> |
put(StreamBuilderAspectType<A> type,
C aspect)
Put an aspect for specific type.
|
void |
remove(StreamBuilderAspectType<?> type)
Remove the aspect for the given type from this map.
|
public final <A,C extends A> void put(@NotNull StreamBuilderAspectType<A> type, @NotNull C aspect)
A
- The type of the aspect.C
- The concrete implementation type of the aspect.type
- The aspect type.aspect
- The aspect implementation.public final void remove(StreamBuilderAspectType<?> type)
type
- The aspect type.@Nullable public final <A> A get(StreamBuilderAspectType<A> type)
A
- The type of the aspect.type
- The aspect type to look up.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210