Class KeyIndexedObject
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.model.KeyIndexedObject
-
- Direct Known Subclasses:
MapObject,SpecialImageArea,UserProfile
public class KeyIndexedObject extends java.lang.Object
An object that is identified amongst objects of the same class by aStringkey.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringkey
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyIndexedObject(java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetKey()inthashCode()
-
-
-
Field Detail
-
key
private final java.lang.String key
-
-
Constructor Detail
-
KeyIndexedObject
protected KeyIndexedObject(java.lang.String key)
-
-
Method Detail
-
getKey
public java.lang.String getKey()
- Returns:
- the unique key that identifies this object among other instances of the same class
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-