com.sun.jini.lease
Class AbstractLeaseMap.EntrySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet
com.sun.jini.lease.AbstractLeaseMap.EntrySet
- All Implemented Interfaces:
- Iterable, Collection, Set
- Enclosing class:
- AbstractLeaseMap
private static final class AbstractLeaseMap.EntrySet
- extends AbstractSet
We use an AbstractSet to minimize the number of places where
we have to wrap objects inside new classes. This could be
expensive, but the standard underlying maps (HashMap and TreeMap)
also use an AbstractSet for this set, so we're really not
making things that much worse.
set
private final Set set
AbstractLeaseMap.EntrySet
public AbstractLeaseMap.EntrySet(Set set)
iterator
public Iterator iterator()
- Wrap so we can do type checking on Map.Entry.setValue.
- Specified by:
iterator
in interface Iterable
- Specified by:
iterator
in interface Collection
- Specified by:
iterator
in interface Set
- Specified by:
iterator
in class AbstractCollection
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.