Class ConcurrentAuthorityFactory.Key

java.lang.Object
org.apache.sis.referencing.factory.ConcurrentAuthorityFactory.Key
Enclosing class:
ConcurrentAuthorityFactory<DAO extends GeodeticAuthorityFactory>

private static final class ConcurrentAuthorityFactory.Key extends Object
The key objects to use in the ConcurrentAuthorityFactory.cache. This is one of the following pairs of values:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final String
    The cached object authority code.
    (package private) final Object
    The type of the cached object.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Key(Object type, String code)
    Creates a new key for the given type and code.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Compares this key with the given object for equality .
    int
    Returns the hash code value for this key.
    String representation used by CacheRecord.

    Methods inherited from class java.lang.Object

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

    • type

      final Object type
      The type of the cached object.
    • code

      final String code
      The cached object authority code.
  • Constructor Details

    • Key

      Key(Object type, String code)
      Creates a new key for the given type and code.
  • Method Details

    • hashCode

      public int hashCode()
      Returns the hash code value for this key.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Compares this key with the given object for equality .
      Overrides:
      equals in class Object
    • toString

      public String toString()
      String representation used by CacheRecord.
      Overrides:
      toString in class Object