Record Class HasDateRange.RangeFilter<T extends HasDateRange>
java.lang.Object
java.lang.Record
net.tangly.core.HasDateRange.RangeFilter<T>
- Type Parameters:
T- type of instances to test- Record Components:
range- date range to test against
- All Implemented Interfaces:
Predicate<T>
- Enclosing interface:
HasDateRange
public static record HasDateRange.RangeFilter<T extends HasDateRange>(@NotNull DateRange range)
extends Record
implements Predicate<T>
Test if the date range is partially inside the date range specified in the filter.
-
Constructor Summary
ConstructorsConstructorDescriptionRangeFilter(LocalDate from, LocalDate to) RangeFilter(@NotNull DateRange range) Creates an instance of aRangeFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull DateRangerange()Returns the value of therangerecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RangeFilter
-
RangeFilter
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<T extends HasDateRange>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
range
-