Package de.team33.sphinx.metis
Class AbstractButtons
java.lang.Object
de.team33.sphinx.metis.AbstractButtons
Utility class to handle
AbstractButtons.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAbstractButtons.Builder<B extends AbstractButton>Builder implementation to build target instances ofAbstractButton.static final classAbstractButtons.Charger<B extends AbstractButton>Charger implementation to charge target instances ofAbstractButton.static interfaceAbstractButtons.Setup<B extends AbstractButton,S extends AbstractButtons.Setup<B, S>> Utility interface to set up a target instance ofAbstractButton. -
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends AbstractButton>
AbstractButtons.Builder<B>Returns a newAbstractButtons.Builderfor target instances as supplied by the givenSupplier.static <B extends AbstractButton>
AbstractButtons.Charger<B>charger(B target) Returns a newAbstractButtons.Chargerfor a given target instance.static AbstractButtons.Setup<AbstractButton,?> setup(AbstractButton target) Returns a newAbstractButtons.Setupfor a givenAbstractButtoninstance.
-
Method Details
-
builder
Returns a newAbstractButtons.Builderfor target instances as supplied by the givenSupplier.- Type Parameters:
B- The final type of the target instances, at leastAbstractButton.
-
charger
Returns a newAbstractButtons.Chargerfor a given target instance.- Type Parameters:
B- The final type of the target instance, at leastAbstractButton.
-
setup
Returns a newAbstractButtons.Setupfor a givenAbstractButtoninstance.
-