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 java.lang.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 java.lang.String` | `key`

  - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.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 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:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`

JOSM Plugins