public class ChainedCollection<T>
extends java.util.AbstractCollection<T>
Collection
of multiple Collection
s strung together in a chain.Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
void |
clear() |
static <T> java.util.Collection<T> |
empty() |
static <T> java.util.Collection<T> |
from(java.util.Collection<java.util.Collection<T>> collections) |
static <T> java.util.Collection<T> |
from(java.util.Collection<T>... collections) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
static <T> java.util.Collection<T> |
of(T... items) |
static <T> java.util.Collection<T> |
of(T item) |
int |
size() |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static <T> java.util.Collection<T> empty()
public static <T> java.util.Collection<T> of(T item)
public static <T> java.util.Collection<T> of(T... items)
public static <T> java.util.Collection<T> from(java.util.Collection<T>... collections)
public static <T> java.util.Collection<T> from(java.util.Collection<java.util.Collection<T>> collections)
public java.util.Iterator<T> iterator()
public int size()
public void clear()
public boolean isEmpty()