Class NumericConstraint<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NumericConstraint​(java.lang.String definition)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean equals​(T val, T bound)  
      protected abstract T getBound​(java.lang.String bound)  
      protected abstract T getValue​(Value value)  
      protected boolean greater​(T val, T bound)  
      protected boolean greaterOrEqual​(T val, T bound)  
      protected abstract boolean less​(T val, T bound)  
      protected boolean lessOrEqual​(T val, T bound)  
      boolean test​(@Nullable Value value)  
      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 java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • NumericConstraint

        protected NumericConstraint​(java.lang.String definition)
    • Method Detail

      • getBound

        protected abstract T getBound​(java.lang.String bound)
      • test

        public boolean test​(@Nullable
                            @Nullable Value value)
        Specified by:
        test in interface java.util.function.Predicate<T>
      • less

        protected abstract boolean less​(T val,
                                        T bound)
      • greater

        protected boolean greater​(T val,
                                  T bound)
      • equals

        protected boolean equals​(T val,
                                 T bound)
      • greaterOrEqual

        protected boolean greaterOrEqual​(T val,
                                         T bound)
      • lessOrEqual

        protected boolean lessOrEqual​(T val,
                                      T bound)
      • toString

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