Class Expression.Arg.Value<E>

  • All Implemented Interfaces:
    com.google.common.base.Predicate<E>, java.util.function.Predicate<E>
    Enclosing class:
    Expression.Arg<E>

    public static class Expression.Arg.Value<E>
    extends Expression.Arg<E>
    An expression that is a constant value--either true or false.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Value​(boolean value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply()  
      boolean apply​(E entity)
      Apply this expression to an entity to get true or false.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Predicate

        equals, test
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • value

        private boolean value
    • Constructor Detail

      • Value

        public Value​(boolean value)
    • Method Detail

      • apply

        public boolean apply​(E entity)
        Description copied from class: Expression.Apply
        Apply this expression to an entity to get true or false.
        Specified by:
        apply in interface com.google.common.base.Predicate<E>
        Specified by:
        apply in class Expression.Apply<E>
      • apply

        public boolean apply()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object