All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.g2forge.alexandria.collection.CollectionCollection Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package com.g2forge.alexandria.collection;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.stream.Stream;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class CollectionCollection implements ICollection {
	protected final Collection collection;

	@Override
	public Iterator iterator() {
		return collection.iterator();
	}

	@Override
	public Stream stream() {
		return collection.stream();
	}

	@Override
	public Collection toCollection() {
		return Collections.unmodifiableCollection(collection);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy