Package trial.gaurav.collection
Interface Comparator
- All Known Implementing Classes:
CustomerFinder
public interface Comparator
The `Comparator` interface is used to define a contract for classes that perform a specific comparison operation.
Classes implementing this interface must provide a method for the comparison logic.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfind()Performs the comparison operation defined by the implementing class.
-
Method Details
-
find
boolean find()Performs the comparison operation defined by the implementing class.- Returns:
- True if the specified condition is met, otherwise false.
-