Skip to content

Commit ed53bd0

Browse files
author
asri71
committed
Making Sort interface as functional interface to exhibit the nature and functionality of the interface more clearly to client
1 parent a023542 commit ed53bd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/types/Sort.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package src.main.java.com.types;
22

3+
@FunctionalInterface
34
public interface Sort<T> {
45

56
public <T extends Comparable<T>> T[] sort(T[] array);

0 commit comments

Comments
 (0)