public final class Procedures extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Procedures.SynchronizedProcedure<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Procedure<T> |
append(Appendable appendable) |
static <T,P> Procedure<T> |
bind(Procedure2<? super T,? super P> procedure,
P parameter) |
static <T> CaseProcedure<T> |
caseDefault(Procedure<? super T> defaultProcedure) |
static <T> CaseProcedure<T> |
caseDefault(Procedure<? super T> defaultProcedure,
Predicate<? super T> predicate,
Procedure<? super T> procedure) |
static <T> Procedure<T> |
cast(Procedure<T> procedure)
Allows a Java 8 lambda and method to be used in a forEach method without requiring a cast.
|
static <T> Procedure<T> |
fromObjectIntProcedure(ObjectIntProcedure<? super T> objectIntProcedure) |
static <T> Procedure<T> |
fromProcedureWithInt(ObjectIntProcedure<? super T> objectIntProcedure)
Deprecated.
since 1.2 - Inlineable
|
static <T> Procedure<T> |
ifElse(Predicate<? super T> predicate,
Procedure<? super T> trueProcedure,
Procedure<? super T> falseProcedure) |
static <T> Procedure<T> |
ifTrue(Predicate<? super T> predicate,
Procedure<? super T> block) |
static <T> Procedure<T> |
println(PrintStream stream) |
static <T> Procedure<T> |
synchronizedEach(Procedure<T> procedure) |
static <T> Procedure<T> |
throwing(ThrowingProcedure<T> throwingProcedure) |
public static <T> Procedure<T> cast(Procedure<T> procedure)
public static <T> Procedure<T> println(PrintStream stream)
public static <T> Procedure<T> append(Appendable appendable)
public static <T> Procedure<T> throwing(ThrowingProcedure<T> throwingProcedure)
@Deprecated public static <T> Procedure<T> fromProcedureWithInt(ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> Procedure<T> fromObjectIntProcedure(ObjectIntProcedure<? super T> objectIntProcedure)
public static <T> Procedure<T> ifTrue(Predicate<? super T> predicate, Procedure<? super T> block)
public static <T> Procedure<T> ifElse(Predicate<? super T> predicate, Procedure<? super T> trueProcedure, Procedure<? super T> falseProcedure)
public static <T> CaseProcedure<T> caseDefault(Procedure<? super T> defaultProcedure)
public static <T> CaseProcedure<T> caseDefault(Procedure<? super T> defaultProcedure, Predicate<? super T> predicate, Procedure<? super T> procedure)
public static <T,P> Procedure<T> bind(Procedure2<? super T,? super P> procedure, P parameter)
Copyright © 2004–2016. All rights reserved.