com.sun.jini.norm
Class ClientLeaseMapWrapper.EntrySet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by com.sun.jini.norm.ClientLeaseMapWrapper.EntrySet
All Implemented Interfaces:
Iterable, Collection, Set
Enclosing class:
ClientLeaseMapWrapper

private final class ClientLeaseMapWrapper.EntrySet
extends AbstractSet

An implementation of Set backed by the ClientLeaseMapWrapper's mappings, which are from wrapperMap's values to clientLeaseMap


Constructor Summary
private ClientLeaseMapWrapper.EntrySet()
           
 
Method Summary
 void clear()
           
 boolean contains(Object o)
           
private  Lease getClientLease(Object o)
          If the passed object is a Map.Entry that is in the ClientMapWrapper return the client lease associated with it, otherwise return null
 Iterator iterator()
           
 boolean remove(Object o)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, containsAll, isEmpty, retainAll, toArray, toArray
 

Constructor Detail

ClientLeaseMapWrapper.EntrySet

private ClientLeaseMapWrapper.EntrySet()
Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface Set
Specified by:
iterator in class AbstractCollection

getClientLease

private Lease getClientLease(Object o)
If the passed object is a Map.Entry that is in the ClientMapWrapper return the client lease associated with it, otherwise return null


contains

public boolean contains(Object o)
Specified by:
contains in interface Collection
Specified by:
contains in interface Set
Overrides:
contains in class AbstractCollection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface Set
Overrides:
remove in class AbstractCollection

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface Set
Specified by:
size in class AbstractCollection

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface Set
Overrides:
clear in class AbstractCollection


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.