net.java.truecommons.shed.Stream Maven / Gradle / Ivy
/*
* Copyright (C) 2005-2012 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truecommons.shed;
import edu.umd.cs.findbugs.annotations.*;
/**
* A generic stream collection interface.
* Mind you that you need to call {@link #close()} on this stream after use,
* best with a {@code try}-with-resources statement.
* For example, let's assume you would have an object named {@code container}
* which has a method named {@code stream()} which returns a
* {@code Stream