@Override
    public boolean equals(final Object o) {
        if (o instanceof String) {
            final String v = (String) o;
            return value.equals(v);
        }
        if (o instanceof BExpressionLookupValue) {
            final BExpressionLookupValue v = (BExpressionLookupValue) o;

            return value.equals(v.value);
        }
        return false;
    }
A lookup value with optional aliases
<p>
toString just gives the primary value,
equals just compares against primary value
matches() also compares aliases

@author ab
main/src/main/java/cgeo/geocaching/brouter/expressions/BExpressionLookupValue.java