Class ComponentCreation

java.lang.Object
com.xebisco.yield.ComponentCreation

public final class ComponentCreation extends Object
Represents a creation of a component with a specific behavior and modifier.
  • 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 behavior
      componentModifier - the modifier of the component
    • ComponentCreation

      public ComponentCreation(Class<? extends ComponentBehavior> componentClass)
      Constructs a new ComponentCreation with the given component class and a null modifier.
      Parameters:
      componentClass - the class of the component behavior
  • Method Details

    • componentClass

      public Class<? extends ComponentBehavior> 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

      public ComponentModifier componentModifier()
      The function returns a ComponentModifier object.
      Returns:
      The method is returning an object of type `ComponentModifier`.