org.qi4j.spi.entity

## Class QualifiedIdentity

- java.lang.Object
- - org.qi4j.spi.entity.QualifiedIdentity

- All Implemented Interfaces:
    Serializable

      public final class QualifiedIdentity
      extends Object
      implements Serializable

  A Qualified Identity is the combination of the Composite type name and the identity of a specific Entity instance. When stringified, these two are separated by the ":" character. Example:

       com.mycompany.mydomain.SomeEntity:123456

  where "com.mycompany.mydomain.SomeEntity" is the Composite type, and "123456" is the identity.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static QualifiedIdentity` | `NULL`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `` | `QualifiedIdentity(EntityComposite entityComposite)`
    `protected` | `QualifiedIdentity(String qualifiedIdentity)`
    `` | `QualifiedIdentity(String identity, Class<?> clazz)`
    `` | `QualifiedIdentity(String identity, String clazz)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`
    `String` | `identity()`
    `static QualifiedIdentity` | `parseQualifiedIdentity(String id)`
    `static QualifiedIdentity` | `parseURI(String uri)`
    `static QualifiedIdentity` | `qualifiedIdentityOf(Object o)`
    `String` | `toString()`
    `String` | `toURI()`
    `String` | `type()`

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

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

- - ### Field Detail

    - #### NULL

          public static final QualifiedIdentity NULL

  - ### Constructor Detail

    - #### QualifiedIdentity

          public QualifiedIdentity(EntityComposite entityComposite)

    - #### QualifiedIdentity

          public QualifiedIdentity(String identity,
                           Class<?> clazz)

    - #### QualifiedIdentity

          public QualifiedIdentity(String identity,
                           String clazz)

    - #### QualifiedIdentity

          protected QualifiedIdentity(String qualifiedIdentity)

  - ### Method Detail

    - #### parseURI

          public static QualifiedIdentity parseURI(String uri)

    - #### parseQualifiedIdentity

          public static QualifiedIdentity parseQualifiedIdentity(String id)

    - #### qualifiedIdentityOf

          public static QualifiedIdentity qualifiedIdentityOf(Object o)

    - #### identity

          public final String identity()

    - #### type

          public final String type()

    - #### toURI

          public final String toURI()

    - #### 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`