Class NotInDateRangeColumnConstraint

  • All Implemented Interfaces:
    ColumnConstraint<java.time.LocalDate>, java.lang.Comparable<ColumnConstraint<java.time.LocalDate>>

    public class NotInDateRangeColumnConstraint
    extends RangeColumnConstraint<java.time.LocalDate>
    Column Constraint where acceptable column values are not within some range defined by a min value and a max value.
    • Constructor Detail

      • NotInDateRangeColumnConstraint

        public NotInDateRangeColumnConstraint​(java.time.LocalDate minValue,
                                              java.time.LocalDate maxValue,
                                              EditorProvider<java.time.LocalDate> editorProvider)
        Construct a new NotInDateRangeConstraint that uses the default name and group and specifies the min and max values for the range.
        minValue - the min value of the excluded range.
        maxValue - the max value of the excluded range.
        editorProvider - an object that can provide an appropriate range editor for the column type.
    • Method Detail

      • accepts

        public boolean accepts​(java.time.LocalDate value,
                               TableFilterContext context)
        Description copied from interface: ColumnConstraint
        Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwise
        value - the column value to be tested.
        context - provides additional information about the the table and its data. This allows the filter to base its decision on information other than just the column value.
        true if the column value passes the constraint, false otherwise
      • copy

        public RangeColumnConstraint<java.time.LocalDate> copy​(java.time.LocalDate min,
                                                               java.time.LocalDate max)
        Description copied from class: RangeColumnConstraint
        subclasses must override to generate new versions of themselves but with new range values.
        Specified by:
        copy in class RangeColumnConstraint<java.time.LocalDate>
        min - the min value of the range.
        max - the max value of the range.
        a new ColumnConstraint that is the same type as this constraint but with a new range defined.