com.atlassian.bamboo.util
Class BambooIterables
java.lang.Object
com.atlassian.bamboo.util.BambooIterables
public final class BambooIterables
- extends java.lang.Object
Method Summary |
static
<T> java.lang.Iterable<T> |
|
concat(java.util.Collection<? extends T> iterable,
T object)
|
static
<T,E extends java.lang.Throwable,F extends java.lang.Throwable>
T |
|
find(java.lang.Iterable<T> iterable,
DoubleThrowingPredicate<? super T,E,F> predicate,
T defaultValue)
Returns the first element in iterable that satisfies the given predicate, or defaultValue if none
found. |
static
<T,E extends java.lang.Throwable>
T |
|
find(java.lang.Iterable<T> iterable,
ThrowingPredicate<? super T,E> predicate,
T defaultValue)
Returns the first element in iterable that satisfies the given predicate, or defaultValue if none
found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
find
@Nullable
public static <T,E extends java.lang.Throwable> T find(java.lang.Iterable<T> iterable,
ThrowingPredicate<? super T,E> predicate,
@Nullable
T defaultValue)
throws E extends java.lang.Throwable
- Returns the first element in
iterable
that satisfies the given predicate, or defaultValue
if none
found.
- Throws:
E extends java.lang.Throwable
find
@Nullable
public static <T,E extends java.lang.Throwable,F extends java.lang.Throwable> T find(java.lang.Iterable<T> iterable,
DoubleThrowingPredicate<? super T,E,F> predicate,
@Nullable
T defaultValue)
throws E extends java.lang.Throwable,
F extends java.lang.Throwable
- Returns the first element in
iterable
that satisfies the given predicate, or defaultValue
if none
found.
- Throws:
E extends java.lang.Throwable
concat
public static <T> java.lang.Iterable<T> concat(java.util.Collection<? extends T> iterable,
T object)
Copyright © 2012 Atlassian. All Rights Reserved.