org.jivesoftware.util
Class Immutable.Collection<V>
java.lang.Object
java.util.AbstractCollection<V>
org.jivesoftware.util.Immutable.Collection<V>
- All Implemented Interfaces:
- Iterable<V>, Collection<V>
- Enclosing class:
- Immutable
public static class Immutable.Collection<V>
- extends AbstractCollection<V>
Wraps an existing Immutable.Collection
to provide read-only access to its contents.
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Immutable.Collection
public Immutable.Collection(Collection<V> delegate)
iterator
public Immutable.Iterator<V> iterator()
- Specified by:
iterator
in interface Iterable<V>
- Specified by:
iterator
in interface Collection<V>
- Specified by:
iterator
in class AbstractCollection<V>
size
public int size()
- Specified by:
size
in interface Collection<V>
- Specified by:
size
in class AbstractCollection<V>
Copyright © 2003-2008 Jive Software.