Java Utililty Methods List Distinct Value

List of utility methods to do List Distinct Value

Description

The list of methods to do List Distinct Value are organized into topic(s).

Method

ListsortedDistinct(List seq)
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;