Commit 7a3a78dc authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading
+6 −0
Changes for Java 8 Lambdas and Streams - Working Files/LambdasAndStreams/.classpath: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="output" path="bin"/>
</classpath>
+17 −0
Changes for Java 8 Lambdas and Streams - Working Files/LambdasAndStreams/.project: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>LambdasAndStreams</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
	</natures>
</projectDescription>
+7 −0
Changes for Java 8 Lambdas and Streams - Working Files/LambdasAndStreams/BiConsumers.jpage: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
// Defintion of a BiConsumer

@FunctionalInterface
public interface BiConsumer<T, U> {
	void accept(T t, U u);
	// other default methods
}
 No newline at end of file
+23 −0
Changes for Java 8 Lambdas and Streams - Working Files/LambdasAndStreams/BiFunction.jpage: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
// Defintion of a BiFunction

@FunctionalInterface
public interface BiFunction<T, U, R> {
    R apply(T t, U u);
	// other default methods
}

// three-argument Predicate

interface TriPredicate<U, V, W>{
	boolean test(U u, V v, W w);
}

// triConsumer
interface TriConsumer<U, V, W>{
	void accept(U u, V v, W w);
}

// triFunction
interface TriFunction<U, V, W, X> {
	X accept(U u, V v, W w);
}
+7 −0
Changes for Java 8 Lambdas and Streams - Working Files/LambdasAndStreams/BiPredicates.jpage: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
// Defintion of a BiPredicate

@FunctionalInterface
public interface BiPredicate<T, U> {
    boolean test(T t, U u);
    //other static and default methods
}
Loading