de.smartics.properties.spi.config.cache
Class CompoundKey

Package class diagram package CompoundKey
java.lang.Object
  extended by de.smartics.properties.spi.config.cache.CompoundKey
All Implemented Interfaces:
Serializable

public class CompoundKey
     
     
extends Object
implements Serializable

A compound key consists of two key parts the virtual cache name and the name of the property key. A virtual cache is opened e.g. for configuration keys.

See Also:
Serialized Form

Constructor Summary
CompoundKey(String name, Object key)
          Constructor to crate a compound key.
 
Method Summary
 boolean equals(Object object)
           
 Object getKey()
          Returns the real key.
 String getName()
          Returns the name of the virtual cache (e. g. configuration key).
 int hashCode()
           
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundKey

public CompoundKey(String name,
                   Object key)
Constructor to crate a compound key.

Parameters:
name - the name of the virtual cache (e.
key - the real key.
Method Detail

getName

public String getName()
Returns the name of the virtual cache (e. g. configuration key).

Returns:
the name of the virtual cache (e.

getKey

public Object getKey()
Returns the real key.

Returns:
the real key.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.