List of utility methods to do List Distinct Value
List | sortedDistinct(List sorted Distinct Set<Integer> codeSet = new TreeSet<Integer>(); codeSet.addAll(seq); List<Integer> uniqueSortedCodeSet = new ArrayList<Integer>(); uniqueSortedCodeSet.addAll(codeSet); Collections.sort(uniqueSortedCodeSet); return uniqueSortedCodeSet; |