net.anwiba.commons.lang.stream.IStream Maven / Gradle / Ivy
/*
* #%L
* anwiba commons core
* %%
* Copyright (C) 2007 - 2016 Andreas Bartels
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package net.anwiba.commons.lang.stream;
import java.util.Collection;
import java.util.List;
import net.anwiba.commons.lang.collection.IObjectList;
import net.anwiba.commons.lang.functional.IAcceptor;
import net.anwiba.commons.lang.functional.IConverter;
import net.anwiba.commons.lang.functional.IProcedure;
import net.anwiba.commons.lang.optional.IOptional;
public interface IStream {
public IStream convert(IConverter funtion);
public void consum(IProcedure procedure) throws E;
public IStream distinct();
public IOptional first() throws E;
public IOptional forAll(O inital, IAccumulator accumulator) throws E;
public IOptional first(IAcceptor funtion) throws E;
public IStream filter(IAcceptor funtion);
public Iterable asIterable() throws E;
public Collection asCollection() throws E;
public List asList() throws E;
public IObjectList asObjectList() throws E;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy