A functional interface which allows the same data to be sorted easily by different criteria code example
Example: creating the functional interface in java
package com.concretepage;
@FunctionalInterface
public interface Calculator {
long calculate(long num1, long num2);
}