|
||||||||||
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.lang.Iterable<? 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. |
|
|
none(java.lang.Iterable<T> iterable,
com.google.common.base.Predicate<? super T> predicate)
Returns true if no elements in iterable fulfill predicate |
|
static
|
split(java.util.List<T> unfiltered,
com.google.common.base.Predicate<T> predicate)
Splits iterable into a pair of two iterables, one fulfilling the predicate and one not fulfillling it. |
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 <T> boolean none(@NotNull java.lang.Iterable<T> iterable, @NotNull com.google.common.base.Predicate<? super T> predicate)
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.lang.Iterable<? extends T> iterable, T object)
public static <T> Pair<java.lang.Iterable<T>,java.lang.Iterable<T>> split(java.util.List<T> unfiltered, com.google.common.base.Predicate<T> predicate)
unfiltered
- predicate
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |