Class SingleObjectDefinitionIdentifier

java.lang.Object
com._1c.g5.aef2.standard.internal.definitions.SingleObjectDefinitionIdentifier
All Implemented Interfaces:
IDefinitionIdentifier, org.eclipse.core.runtime.IAdaptable

public final class SingleObjectDefinitionIdentifier extends Object implements IDefinitionIdentifier
The IDefinitionIdentifier implementation that uses single object to identify the definition.
Methods equals(Object) and hashCode() delegate the execution to the underlying object.
  • Constructor Details

    • SingleObjectDefinitionIdentifier

      public SingleObjectDefinitionIdentifier(Object object)
      Creates a new identifier.
      Parameters:
      object - the object that uniquely identifies the definition.
  • Method Details

    • getObject

      public Object getObject()
      Returns the object that uniquely identifies the definition.
      Returns:
      the identifier object, never null.
    • matches

      public boolean matches(Object id)
      Description copied from interface: IDefinitionIdentifier
      Checks whether the identifier matches the specified id.
      Specified by:
      matches in interface IDefinitionIdentifier
      Parameters:
      id - the object that represents identifier, cannot be null.
      Returns:
      true if the identifier matches the specified object, false - otherwise.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAdapter

      public <T> T getAdapter(Class<T> adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • toString

      public String toString()
      Overrides:
      toString in class Object