Making Sort interface as functional interface to exhibit the nature and functionality of the interface more clearly to client

This commit is contained in:
asri71 2019-02-28 17:10:08 +05:30
parent a023542464
commit ed53bd0353

View File

@ -1,5 +1,6 @@
package src.main.java.com.types;
@FunctionalInterface
public interface Sort<T> {
public <T extends Comparable<T>> T[] sort(T[] array);