net.java.truecommons.shed.Stream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-shed Show documentation
Show all versions of truecommons-shed Show documentation
Hosts small but useful tools and utilities that didn't fit anywhere else.
/*
* 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