Class GenericMapCollection<K,V,M extends java.util.Map<K,V>,I>
- java.lang.Object
-
- org.apache.ofbiz.base.util.collections.GenericMapCollection<K,V,M,I>
-
- All Implemented Interfaces:
java.lang.Iterable<I>
,java.util.Collection<I>
- Direct Known Subclasses:
GenericMapSet
,GenericMapValues
public abstract class GenericMapCollection<K,V,M extends java.util.Map<K,V>,I> extends java.lang.Object implements java.util.Collection<I>
-
-
Constructor Summary
Constructors Constructor Description GenericMapCollection(M source)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
add(I item)
boolean
addAll(java.util.Collection<? extends I> collection)
java.lang.StringBuilder
appendTo(java.lang.StringBuilder sb)
void
clear()
boolean
containsAll(java.util.Collection<?> collection)
boolean
isEmpty()
java.util.Iterator<I>
iterator()
protected abstract java.util.Iterator<I>
iterator(boolean noteAccess)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] array)
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
GenericMapCollection
public GenericMapCollection(M source)
-
-
Method Detail
-
addAll
public boolean addAll(java.util.Collection<? extends I> collection)
- Specified by:
addAll
in interfacejava.util.Collection<K>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<K>
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
- Specified by:
containsAll
in interfacejava.util.Collection<K>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<K>
-
iterator
public final java.util.Iterator<I> iterator()
-
iterator
protected abstract java.util.Iterator<I> iterator(boolean noteAccess)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
- Specified by:
removeAll
in interfacejava.util.Collection<K>
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
- Specified by:
retainAll
in interfacejava.util.Collection<K>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<K>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<K>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<K>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendTo
public java.lang.StringBuilder appendTo(java.lang.StringBuilder sb)
-
-