|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.util.BambooIterables
public final class BambooIterables
Method Summary | ||
---|---|---|
static
|
concat(java.util.Collection<? extends T> iterable,
T object)
Combines an iterable and an element into a single iterable. |
|
static
|
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
|
find(java.lang.Iterable<T> iterable,
com.google.common.base.Predicate<? super T> predicate,
java.lang.String exceptionMessage)
Utility method to customize exception message thrown by Iterables.find(Iterable, com.google.common.base.Predicate) . |
|
static
|
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 |
Method Detail |
---|
@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
iterable
that satisfies the given predicate, or defaultValue
if none
found.
E extends java.lang.Throwable
@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
iterable
that satisfies the given predicate, or defaultValue
if none
found.
E extends java.lang.Throwable
public static <T> T find(java.lang.Iterable<T> iterable, com.google.common.base.Predicate<? super T> predicate, @Nullable java.lang.String exceptionMessage)
Iterables.find(Iterable, com.google.common.base.Predicate)
.
public static <T> java.lang.Iterable<T> concat(java.util.Collection<? extends T> iterable, T object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |