Class CacheKey

java.lang.Object
org.apache.sis.metadata.sql.CacheKey

final class CacheKey extends Object
The key for an entry in the MetadataSource cache.
Since:
0.8
Version:
0.8
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The primary key for the entry in the table.
    private final Class<?>
    The metadata interface to be implemented.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheKey(Class<?> type, String identifier)
    Creates a new key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
    Compares the given object with this key for equality.
    int
    Returns a hash code for this key.

    Methods inherited from class java.lang.Object

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

    • type

      private final Class<?> type
      The metadata interface to be implemented.
    • identifier

      private final String identifier
      The primary key for the entry in the table.
  • Constructor Details

    • CacheKey

      CacheKey(Class<?> type, String identifier)
      Creates a new key.
  • Method Details

    • equals

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

      public int hashCode()
      Returns a hash code for this key.
      Overrides:
      hashCode in class Object