I have Set of objects. Each object has String value.
I need to select all objects that have this value equal to \"direction\".
Is it possibl
In my user class I have initialized roles variable like this private Set<\Role> roles;. This has a getter method. In the Role class I have String role variable where it is used to store the value of role. In order to get the value of role. I can use below code.
for (Role role : user.getRoles()) {
rolevalue = role.getRole();
}