net.sf.farrago.test
Class FarragoObjectCacheTest.RentalCarAgreement

java.lang.Object
  extended by net.sf.farrago.test.FarragoObjectCacheTest.RentalCarAgreement
Enclosing class:
FarragoObjectCacheTest

private class FarragoObjectCacheTest.RentalCarAgreement
extends Object

RentalCarAgreement encapsulates the assignment of a car to a customer for a duration.


Field Summary
(package private)  FarragoObjectCacheTest.RentalCar car
           
(package private)  FarragoObjectCache.Entry pinnedEntry
           
 
Constructor Summary
FarragoObjectCacheTest.RentalCarAgreement(FarragoObjectCache.Entry pinnedEntry)
          Creates a new agreement.
 
Method Summary
 FarragoObjectCacheTest.RentalCar getCar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

car

FarragoObjectCacheTest.RentalCar car

pinnedEntry

FarragoObjectCache.Entry pinnedEntry
Constructor Detail

FarragoObjectCacheTest.RentalCarAgreement

FarragoObjectCacheTest.RentalCarAgreement(FarragoObjectCache.Entry pinnedEntry)
Creates a new agreement.

Parameters:
pinnedEntry - reference to pinned cache entry, which implements the checkout of a car from a fleet
Method Detail

getCar

public FarragoObjectCacheTest.RentalCar getCar()
Returns:
car assigned to customer by this agreement