public class MyClass extends Activity {
public static final String DEFAULT_ID = "def";
public static final LinkedHashSet<String> DEF_IDS = new LinkedHashSet<>(Arrays.asList(DEFAULT_ID));
private boolean isDefault(String currentId) {
Log.v(TAG,"isdefault("+currentId+") = " + DEF_IDS.contains(currentId));
return DEF_IDS.contains(currentId);
}
}
In log:
isdefault(profile0) = true
WTF? If DEF_IDS doesn't contain "profile0", why does it says that it contains?