Class ConstrainableLandlordLeaseMap

All Implemented Interfaces:
Map, LeaseMap

public final class ConstrainableLandlordLeaseMap extends LandlordLeaseMap
Constrainable sub-class of LandlordLeaseMap.
Since:
2.0
Author:
Sun Microsystems, Inc.
  • Method Details

    • canContainKey

      public boolean canContainKey(Object key)
      Description copied from interface: LeaseMap
      Returns true if the given object is a Lease which can be renewed and cancelled in a batch with other leases in the map. Whether or not two Lease objects can be batched is an implementation detail determined by the objects.
      Specified by:
      canContainKey in interface LeaseMap
      Overrides:
      canContainKey in class LandlordLeaseMap
      Parameters:
      key - an object that should be a lease
      Returns:
      true if the lease can be renewed and cancelled in a a batch with other leases
      See Also: