org.ehcache.config
Interface ResourceUnit

All Known Implementing Classes:
EntryUnit, MemoryUnit

public interface ResourceUnit

Represents a unit in which quantity is expressed in a SizedResourcePool.


Method Summary
 intcompareTo(long thisSize, long thatSize, ResourceUnit thatUnit)
          Compares thisSize in this unit to thatSize in thatUnit.
 

Method Detail

compareTo

int compareTo(long thisSize,              long thatSize,              ResourceUnit thatUnit)              throws java.lang.IllegalArgumentException
Compares thisSize in this unit to thatSize in thatUnit.

Returns 1, 0, or -1 if the thisSize of this is greater than, equal to, or less than thatSize of thatUnit respectively.

Parameters:
thisSize - size in this unit
thatSize - size in thatUnit
thatUnit - other ResourceUnit
Returns:
as per the compareTo contract
Throws:
java.lang.IllegalArgumentException - if the units are not comparable




NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14