org.gcube.common.clients.cache
Class Key

java.lang.Object
  extended by 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 Summary
 boolean equals(Object obj)
           
 int hashCode()
           
static Key key(String name, Query<?> query)
          Creates a Key with a given service name and Query
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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


Copyright © 2013. All Rights Reserved.