Class BooleanOperationContributor

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class BooleanOperationContributor
    extends OperationContributor
    • 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 java.lang.String asString()
      • ternary

        public java.lang.Object ternary​(java.util.function.Supplier<?> sIfTrue,
                                        java.util.function.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