Package de.team33.sphinx.metis
Class Components
java.lang.Object
de.team33.sphinx.metis.Components
Utility class to handle
Components.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComponents.Builder<C extends Component>Builder implementation to build target instances ofComponent.static final classComponents.Charger<C extends Component>Charger implementation to charge target instances ofComponent.static interfaceComponents.Setup<C extends Component,S extends Components.Setup<C, S>> Utility interface to set up a target instance ofComponent. -
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends Component>
Components.Builder<C>Returns a newComponents.Builderfor target instances as supplied by the givenSupplier.static <T extends Component>
Components.Charger<T>charger(T target) Returns a newComponents.Chargerfor a given target instance.static Components.Setup<Component,?> Returns a newComponents.Setupfor a givenComponentinstance.
-
Method Details
-
builder
Returns a newComponents.Builderfor target instances as supplied by the givenSupplier.- Type Parameters:
C- The final type of the target instances, at leastComponent.
-
charger
Returns a newComponents.Chargerfor a given target instance.- Type Parameters:
T- The final type of the target instance, at leastComponent.
-
setup
Returns a newComponents.Setupfor a givenComponentinstance.
-