org.openstreetmap.josm.plugins.streetside.model

## Class KeyIndexedObject

- java.lang.Object
- - org.openstreetmap.josm.plugins.streetside.model.KeyIndexedObject

- Direct Known Subclasses:
    MapObject, SpecialImageArea, UserProfile

      public class KeyIndexedObject
      extends Object

  An object that is identified amongst objects of the same class by a `String` key.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private String` | `key`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `KeyIndexedObject(String key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `String` | `getKey()`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### key

          private final String key

  - ### Constructor Detail

    - #### KeyIndexedObject

          protected KeyIndexedObject(String key)

  - ### Method Detail

    - #### getKey

          public String getKey()

      Returns:
        the unique key that identifies this object among other instances of the same class

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

JOSM Plugins