Here is the condition:
You need to write your own functional interface (TernaryIntPredicate) and use it with a lambda expression. The test method must be a single one.
Besides, you need to write down your argument using your TernaryIntPredicate.
The lambda expression is true otherwise. The name of the instance is allValuesAreDifferentPredicate. It should be a static field. Important. Use the provided template for your solution. Do not change it!
Sample Input 1: 1 1 1
Sample Output 1: False
Sample Input 2: 2 3 4
Sample Output 2: True
Here is the starting code:
@FunctionalInterface public interface TernaryIntPredicate { // Write a method here } public static final TernaryIntPredicate allValuesAreDifferentPredicate = // Write a lambda expression here