Class Key

java.lang.Object
org.gcube.common.clients.cache.Key

public final class Key extends Object
Keys for cross-service EndpointCaches comprised of a service name, a Query, and a scope.

Keys are value objects with informative string representations.

Author:
Fabio Simeoni
  • Method Details

    • key

      public static Key key(String name, Query<?> query)
      Creates a Key with a given service name and Query
      Parameters:
      name - the name
      query - the query
      Returns:
      the key
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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