com.liferay.portal.kernel.concurrent
Class IncreasableEntry<K,V>

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.IncreasableEntry<K,V>

public abstract class IncreasableEntry<K,V>
extends java.lang.Object

View Source

Author:
Shuyang Zhou

Constructor Summary
IncreasableEntry(K key, V value)
           
 
Method Summary
abstract  V doIncrease(V originalValue, V deltaValue)
           
 boolean equals(java.lang.Object obj)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 boolean increase(V deltaValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncreasableEntry

public IncreasableEntry(K key,
                        V value)
Method Detail

doIncrease

public abstract V doIncrease(V originalValue,
                             V deltaValue)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getKey

public final K getKey()

getValue

public final V getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

increase

public final boolean increase(V deltaValue)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object