Package com.enonic.xp.data

## Class PropertyPath.Element

- java.lang.Object
- - com.enonic.xp.data.PropertyPath.Element

- Enclosing class:
    PropertyPath

      public static class PropertyPath.Element
      extends Object

  Immutable.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Element​(String element)` |
    `Element​(String name, int index)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `static PropertyPath.Element` | `from​(String element)` |
    `static PropertyPath.Element` | `from​(String name, int index)` |
    `int` | `getIndex()` |
    `String` | `getName()` |
    `int` | `hashCode()` |
    `boolean` | `hasIndex()` |
    `String` | `toString()` |

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

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

- - ### Constructor Detail

    - #### Element

          public Element​(String element)

    - #### Element

          public Element​(String name,
                         int index)

  - ### Method Detail

    - #### from

          public static PropertyPath.Element from​(String element)

    - #### from

          public static PropertyPath.Element from​(String name,
                                                  int index)

    - #### getName

          public String getName()

    - #### hasIndex

          public boolean hasIndex()

    - #### getIndex

          public int getIndex()

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`