From ed53bd0353b6ad4bf098fd6d5435fba018282631 Mon Sep 17 00:00:00 2001 From: asri71 Date: Thu, 28 Feb 2019 17:10:08 +0530 Subject: [PATCH] Making Sort interface as functional interface to exhibit the nature and functionality of the interface more clearly to client --- src/main/java/com/types/Sort.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/types/Sort.java b/src/main/java/com/types/Sort.java index ea919e24..da89756f 100644 --- a/src/main/java/com/types/Sort.java +++ b/src/main/java/com/types/Sort.java @@ -1,5 +1,6 @@ package src.main.java.com.types; +@FunctionalInterface public interface Sort { public > T[] sort(T[] array);