org.smallmind.quorum.transport.message
Class SelfDestructiveKey<K extends Comparable<K>>
java.lang.Object
org.smallmind.quorum.transport.message.SelfDestructiveKey<K>
- All Implemented Interfaces:
- Comparable<SelfDestructiveKey<K>>
public class SelfDestructiveKey<K extends Comparable<K>>
- extends Object
- implements Comparable<SelfDestructiveKey<K>>
SelfDestructiveKey
public SelfDestructiveKey(long ignitionTime)
SelfDestructiveKey
public SelfDestructiveKey(K mapKey,
long ignitionTime)
getMapKey
public K getMapKey()
getIgnitionTime
public long getIgnitionTime()
compareTo
public int compareTo(SelfDestructiveKey<K> key)
- Specified by:
compareTo in interface Comparable<SelfDestructiveKey<K extends Comparable<K>>>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012. All Rights Reserved.