import jalview.util.MessageManager;
-import java.util.HashMap;
-import java.util.Map;
-
/**
* An enumeration for binary conditions that a user might choose from when
* setting filter or match conditions for values
NotMatches(false, true), Present(false, false), NotPresent(false, false),
EQ(true, true), NE(true, true), LT(true, true), LE(true, true),
GT(true, true), GE(true, true);
-
- private static Map<Condition, String> displayNames = new HashMap<>();
private boolean numeric;
@Override
public String toString()
{
- String name = displayNames.get(this);
- if (name != null)
- {
- return name;
- }
- name = MessageManager
- .getStringOrReturn("label.matchCondition_", name());
- displayNames.put(this, name);
- return name;
+ return MessageManager.getStringOrReturn("label.matchCondition_",
+ name());
}
}