Class BooleanOperationContributor

    • Constructor Detail

      • BooleanOperationContributor

        public BooleanOperationContributor()
    • Method Detail

      • or

        public boolean or​(boolean operand)
      • and

        public boolean and​(boolean operand)
      • not

        public boolean not()
      • xor

        public boolean xor​(boolean operand)
      • asString

        public String asString()
      • ternary

        public Object ternary​(Supplier<?> sIfTrue,
                              Supplier<?> sIfFalse)
        Lazy functional-style ternary operation.
        Parameters:
        sIfTrue - Value getter if the target is true
        sIfFalse - Value getter if the target is false
        Returns:
        The value given by the Supplier parameters based on whether the target is true or false.
        Since:
        1.6