Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof StringHashMap))
{
return false;
}
StringHashMap object = (StringHashMap) obj;
if (this.hasEmptyValue != object.hasEmptyValue)
{
return false;
}
if (this.keyToValue == null)
{
if (object.keyToValue != null)
{
return false;
}
}
else
{
if (!this.keyToValue.equals(object.keyToValue))
{
return false;
}
}
if (this.keyToValue == null)
{
if (object.keyToValue != null)
{
return false;
}
}
else
{
if (!this.valueToKey.equals(object.valueToKey))
{
return false;
}
}
return super.equals(obj);
|
public java.util.Map | getKeyToValue()
return keyToValue;
|
protected java.lang.String | getTextEncodingCharSet()
return TextEncoding.CHARSET_ISO_8859_1;
|
public java.util.Map | getValueToKey()
return valueToKey;
|
public java.util.Iterator | iterator()
if (keyToValue == null)
{
return null;
}
else
{
// put them in a treeset first to sort them
TreeSet<String> treeSet = new TreeSet<String>(keyToValue.values());
if (hasEmptyValue)
{
treeSet.add("");
}
return treeSet.iterator();
}
|
public void | setValue(java.lang.Object value)
if (value instanceof String)
{
//Issue #273 temporary hack for MM
if(value.equals("XXX"))
{
this.value=value.toString();
}
else
{
this.value = ((String) value).toLowerCase();
}
}
else
{
this.value = value;
}
|
public java.lang.String | toString()
if (value == null)
{
return "";
}
else if (keyToValue.get(value) == null)
{
return "";
}
else
{
return keyToValue.get(value);
}
|