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

java.util.Collection Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2011-2014 Fernando Petrola
 * 
 *  This file is part of Dragome SDK.
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 ******************************************************************************/
package java.util;

import java.util.stream.Stream;

public interface Collection extends Iterable
{
	default Stream stream()
	{
		return new StreamImpl(this);
	}

	public boolean add(E element);
	public void clear();
	public boolean contains(Object value);
	public boolean equals(Object o);
	public boolean isEmpty();
	public Iterator iterator();
	public boolean remove(Object elem);
	public int size();
	public Object[] toArray();
	public  T[] toArray(T[] target);
	boolean addAll(Collection c);
	boolean containsAll(Collection c);
	boolean removeAll(Collection c);
	boolean retainAll(Collection c);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy