Class Between

    • Constructor Detail

      • Between

        public Between​(java.lang.String attributeName,
                       java.lang.Object min,
                       java.lang.Object max,
                       boolean minInclusive,
                       boolean maxInclusive)
        Constructor
        Parameters:
        attributeName - attribute name
        min - minimum value of range
        max - maximum value of range
        minInclusive - is minimum inclusive?
        maxInclusive - is maximum inclusive?
    • Method Detail

      • getMin

        public java.lang.Comparable getMin()
        Get the minimum value
        Returns:
        min value
      • getMax

        public java.lang.Comparable getMax()
        Get the maximum value
        Returns:
        max value
      • isMinInclusive

        public boolean isMinInclusive()
        Returns:
        true if the min is included in range
      • isMaxInclusive

        public boolean isMaxInclusive()
        Returns:
        true if the max is included in range
      • executeComparable

        protected boolean executeComparable​(java.lang.Comparable attributeValue)
        Execute this criteria for the given Comparable attribute value
        Specified by:
        executeComparable in class ComparableValue
        Parameters:
        attributeValue - Comparable attribute value
        Returns:
        true if criteria is met
      • executeComparableString

        protected boolean executeComparableString​(java.lang.Comparable attributeValue)
        Execute this criteria for the given Comparable strin type attribute value
        Specified by:
        executeComparableString in class ComparableValue
        Parameters:
        attributeValue - Comparable attribute value
        Returns:
        true if criteria is met