com.github.grzesiek_galezowski.collections.readonly.interfaces.ReadOnlyCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of readonly-collections Show documentation
Show all versions of readonly-collections Show documentation
Read-only collection wrappers for Java built-in collections
The newest version!
package com.github.grzesiek_galezowski.collections.readonly.interfaces;
import java.util.Collection;
import java.util.Spliterator;
import java.util.function.IntFunction;
import java.util.stream.Stream;
public interface ReadOnlyCollection {
int size();
boolean isEmpty();
boolean contains(Object o);
boolean containsAll(Collection> c);
ReadOnlyCollectionIterator iterator();
Object[] toArray();
T1[] toArray(T1[] a);
T1[] toArray(IntFunction intFunction);
Spliterator spliterator();
Stream stream();
Stream parallelStream();
}