Record Class FilteringBiNeighborhoodsJoiner<Solution_,A,B>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.neighborhood.stream.joiner.FilteringBiNeighborhoodsJoiner<Solution_,A,B>
- All Implemented Interfaces:
BiNeighborhoodsJoiner<A,B>
@NullMarked
public record FilteringBiNeighborhoodsJoiner<Solution_,A,B> (BiNeighborhoodsPredicate<Solution_,A,B> filter)
extends Record
implements BiNeighborhoodsJoiner<A,B>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFilteringBiNeighborhoodsJoinerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionand(BiNeighborhoodsJoiner<A, B> otherJoiner) final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilteringBiNeighborhoodsJoiner
Creates an instance of aFilteringBiNeighborhoodsJoinerrecord class.- Parameters:
filter- the value for thefilterrecord component
-
-
Method Details
-
and
- Specified by:
andin interfaceBiNeighborhoodsJoiner<Solution_,A>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-