| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static <S, T> Optional | Returns: an Optional containing the transformed value or empty if the optional is empty or the transform returns nullan Optional self, final Closure<T> the closure used to transform the optional value if present transform)If the optional contains a value, returns an optional containing the transformed value obtained using the |
| public static <S, T> Future | |
| public static DoubleStream | Returns: aStream for the arrayThe array, assumed to be unmodified during use self)Returns a sequential |
| public static <T> Optional | |
| public static OptionalInt | filter(final OptionalInt self, final IntPredicate test)
If a value is present in the |
| public static OptionalLong | filter(final OptionalLong self, final LongPredicate test)
If a value is present in the |
| public static OptionalDouble | filter(final OptionalDouble self, final DoublePredicate test)
If a value is present in the |
| public static int | get(final OptionalInt self)
If a value is present in the |
| public static long | get(final OptionalLong self)
If a value is present in the |
| public static double | get(final OptionalDouble self)
If a value is present in the |
| public static IntStream | |
| public static StringBuilder | Returns: the StringBuilder on which this operation was invokeda StringBuilder self, final Object a value to append value)Overloads the left shift operator to provide an easy way to append multiple objects as string representations to a StringBuilder. |
| public static LongStream | Returns: aStream for the arrayThe array, assumed to be unmodified during use self)Returns a sequential |
| public static <T> OptionalDouble | mapToDouble(final Optional<T> self, final ToDoubleFunction<? super T> mapper)
If a value is present in the |
| public static <T> OptionalInt | mapToInt(final Optional<T> self, final ToIntFunction<? super T> mapper)
If a value is present in the |
| public static <T> OptionalLong | mapToLong(final Optional<T> self, final ToLongFunction<? super T> mapper)
If a value is present in the |
| public static <T> Optional | mapToObj(final OptionalInt self, final IntFunction<? extends T> mapper)
If a value is present in the |
| public static <T> Optional | mapToObj(final OptionalLong self, final LongFunction<? extends T> mapper)
If a value is present in the |
| public static <T> Optional | mapToObj(final OptionalDouble self, final DoubleFunction<? extends T> mapper)
If a value is present in the |
| public static Object | |
| public static <T> Optional | orOptional(Optional<T> self, Supplier<? extends Optional<? extends T>> supplier)
Provide similar functionality to JDK9 |
| public static String | Returns: a Stringa StringBuilder self, final String a String value)Appends a String to this StringBuilder. |
| public static Object | |
| public static void | putAt(final StringBuilder
a StringBuilder self, final IntRange a Range range, final Object the object that's toString() will be inserted value)Supports the range subscript operator for StringBuilder. |
| public static void | putAt(final StringBuilder
a StringBuilder self, final EmptyRange<T extends Comparable<T>> a Range range, final Object the object that's toString() will be inserted value)Supports the range subscript operator for StringBuilder. |
| public static int | Returns: the length of the StringBuildera StringBuilder self)
Deprecated
Provides the standard Groovy size() method for StringBuilder.
|
| public static <T> Stream | |
| public static <T> Stream | |
| public static < The type of the array elements T> Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static Stream | |
| public static <T> Stream | stream(final Enumeration<T> self)
Returns a sequential |
| public static <T> Stream | |
| public static <T> Stream | |
| public static <T> Stream | stream(final Spliterator<T> self)
Returns a sequential |
| public static <T> Stream | |
| public static IntStream | stream(final OptionalInt self)
If a value is present in the |
| public static LongStream | stream(final OptionalLong self)
If a value is present in the |
| public static DoubleStream | stream(final OptionalDouble self)
If a value is present in the |
| public static <T> T[] | |
| public static < the type of element T> List | |
| public static < the type of element T> List | Returns: a newjava.util.List instancethe self)java.util.stream.BaseStreamAccumulates the elements of stream into a new List. |
| public static < the type of element T> Set | |
| public static < the type of element T> Set | Returns: a newjava.util.Set instancethe self)java.util.stream.BaseStreamAccumulates the elements of stream into a new Set. |