public final class DataAccessAspectMap extends Object
access aspects
in a type safe manner.Constructor and Description |
---|
DataAccessAspectMap() |
Modifier and Type | Method and Description |
---|---|
<A> A |
get(DataAccessAspectType<A> type)
Get the correctly typed aspect for a type.
|
<A,C extends A> |
put(DataAccessAspectType<A> type,
C aspect)
Put an aspect for specific type.
|
void |
remove(DataAccessAspectType<?> type)
Remove the aspect for the given type from this map.
|
public <A,C extends A> void put(@NotNull DataAccessAspectType<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 void remove(DataAccessAspectType<?> type)
type
- The aspect type.@Nullable public <A> A get(DataAccessAspectType<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