Class StreamBuilderAspectMap
java.lang.Object
de.espirit.firstspirit.client.plugin.dataaccess.aspects.StreamBuilderAspectMap
Map for keeping
stream building aspects
in a type safe manner.- Since:
- 5.2.21
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal <A> A
get
(StreamBuilderAspectType<A> type) Get the correctly typed aspect for a type.final <A,
C extends A>
voidput
(@NotNull StreamBuilderAspectType<A> type, C aspect) Put an aspect for specific type.final void
remove
(StreamBuilderAspectType<?> type) Remove the aspect for the given type from this map.
-
Constructor Details
-
StreamBuilderAspectMap
public StreamBuilderAspectMap()
-
-
Method Details
-
put
public final <A,C extends A> void put(@NotNull @NotNull StreamBuilderAspectType<A> type, @NotNull C aspect) Put an aspect for specific type.- Type Parameters:
A
- The type of the aspect.C
- The concrete implementation type of the aspect.- Parameters:
type
- The aspect type.aspect
- The aspect implementation.- Since:
- 5.2.21
-
remove
Remove the aspect for the given type from this map.- Parameters:
type
- The aspect type.- Since:
- 5.2.21
-
get
Get the correctly typed aspect for a type.- Type Parameters:
A
- The type of the aspect.- Parameters:
type
- The aspect type to look up.- Returns:
- The aspect implementation.
- Since:
- 5.2.21
-