Making Sort interface as functional interface to exhibit the nature and functionality of the interface more clearly to client
This commit is contained in:
parent
a023542464
commit
ed53bd0353
@ -1,5 +1,6 @@
|
||||
package src.main.java.com.types;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface Sort<T> {
|
||||
|
||||
public <T extends Comparable<T>> T[] sort(T[] array);
|
||||
|
Loading…
Reference in New Issue
Block a user