Class SimpleRenderCondition

  • All Implemented Interfaces:
    RenderCondition

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

      Constructors 
      Constructor Description
      SimpleRenderCondition​(boolean decision)
      Instantiates based on the given boolean decision.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean check()
      Returns true if the component should be rendered; false otherwise.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TRUE

        @Nonnull
        public static final RenderCondition TRUE
        The condition that always returns true.
      • FALSE

        @Nonnull
        public static final RenderCondition FALSE
        The condition that always returns false.
    • 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