org.eclipse.jgit.storage.dht.spi.cache
Class CacheKey
java.lang.Object
org.eclipse.jgit.storage.dht.spi.cache.CacheKey
public class CacheKey
- extends java.lang.Object
Simple byte array based key for cache storage.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CacheKey
public CacheKey(Namespace ns,
RowKey key)
- Wrap a database key.
- Parameters:
ns
- the namespace the key is contained within.key
- the key to wrap.
CacheKey
public CacheKey(Namespace ns,
byte[] key)
- Wrap a byte array.
- Parameters:
ns
- the namespace the key is contained within.key
- the key to wrap.
getNamespace
public Namespace getNamespace()
- Returns:
- namespace to segregate keys by.
getBytes
public byte[] getBytes()
- Returns:
- this key's bytes, within
getNamespace()
.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011. All Rights Reserved.