Package com.xebisco.yield
Class ComponentCreation
java.lang.Object
com.xebisco.yield.ComponentCreation
Represents a creation of a component with a specific behavior and modifier.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentCreation(Class<? extends ComponentBehavior> componentClass) Constructs a new ComponentCreation with the given component class and a null modifier.ComponentCreation(Class<? extends ComponentBehavior> componentClass, ComponentModifier componentModifier) Constructs a new ComponentCreation with the given component class and modifier. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends ComponentBehavior>This function returns the class of a component's behavior.The function returns a ComponentModifier object.
-
Constructor Details
-
ComponentCreation
public ComponentCreation(Class<? extends ComponentBehavior> componentClass, ComponentModifier componentModifier) Constructs a new ComponentCreation with the given component class and modifier.- Parameters:
componentClass- the class of the component behaviorcomponentModifier- the modifier of the component
-
ComponentCreation
Constructs a new ComponentCreation with the given component class and a null modifier.- Parameters:
componentClass- the class of the component behavior
-
-
Method Details
-
componentClass
This function returns the class of a component's behavior.- Returns:
- The method is returning an object of type `Class` that extends `ComponentBehavior`. The specific class being returned is determined by the value of the `componentClass` variable.
-
componentModifier
The function returns a ComponentModifier object.- Returns:
- The method is returning an object of type `ComponentModifier`.
-