Class GmlObjectIdImpl

Object
GmlObjectIdImpl
All Implemented Interfaces:
GmlObjectId, Identifier

public class GmlObjectIdImpl extends Object implements GmlObjectId
Implementation of GmlObjectId.
Author:
Justin Deoliveira, The Open Planning Project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Identifier is a data object, equals is based just on getID()
    The identifier value, which is a string.
    int
    Identifier is a data object, hashCode is based just on getID()
    boolean
    matches(Object object)
    Evaluates the identifer value against the given object.
    Returns a string representation of the identifier.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GmlObjectIdImpl

      public GmlObjectIdImpl(String gmlId)
  • Method Details

    • getID

      public String getID()
      Description copied from interface: GmlObjectId
      The identifier value, which is a string.
      Specified by:
      getID in interface GmlObjectId
      Specified by:
      getID in interface Identifier
    • matches

      public boolean matches(Object object)
      Description copied from interface: GmlObjectId
      Evaluates the identifer value against the given object.
      Specified by:
      matches in interface GmlObjectId
      Specified by:
      matches in interface Identifier
      Parameters:
      object - The construct to be tested.
      Returns:
      true if a match, otherwise false.
    • toString

      public String toString()
      Description copied from interface: Identifier
      Returns a string representation of the identifier.
      Specified by:
      toString in interface Identifier
      Overrides:
      toString in class Object
      Returns:
      getID().toString()
    • equals

      public boolean equals(Object obj)
      Description copied from interface: Identifier
      Identifier is a data object, equals is based just on getID()
      Specified by:
      equals in interface Identifier
      Overrides:
      equals in class Object
      Returns:
      true if obj is an Identifier with the same getID()
    • hashCode

      public int hashCode()
      Description copied from interface: Identifier
      Identifier is a data object, hashCode is based just on getID()
      Specified by:
      hashCode in interface Identifier
      Overrides:
      hashCode in class Object
      Returns:
      hashCode based on getID()