Class SimpleRenderCondition

  • All Implemented Interfaces:
    RenderCondition

    public final class SimpleRenderCondition
    extends Object
    implements RenderCondition
    A condition that takes a simple boolean for the decision.
    • Constructor Detail

      • SimpleRenderCondition

        public SimpleRenderCondition​(boolean decision)
        Instantiates based on the given boolean decision.
        Parameters:
        decision - the decision
    • Method Detail

      • check

        public boolean check()
        Description copied from interface: RenderCondition
        Returns true if the component should be rendered; false otherwise.
        Specified by:
        check in interface RenderCondition
        Returns:
        true if the component should be rendered, false otherwise