Set<String> h = new HashSet<>(Arrays.asList("a", "b", "b", "A"));
It will set "a", "b", "A".
But, I want to do case-insensitive.
So, it will give "a", "b"
In, DTO request
public class EmpDto{
private String empName;
private Set<String> roles;
}
Like, If I want to get in sort order
private Set<String> roles;
Is there any predefined implementation or custom implementation required? If custom, give me a head start