Defines new Groovy methods which appear on normal JDK 8 classes inside the Groovy environment.
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | static boolean | asBoolean(Optional<?> optional)Coerce an Optional instance to a boolean value. | 
| <T> | static Stream<T> | stream(T[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Integer> | stream(int[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Long> | stream(long[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Double> | stream(double[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Character> | stream(char[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Byte> | stream(byte[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Short> | stream(short[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Boolean> | stream(boolean[] self)Returns a sequential Stream with the specified array as its source. | 
|  | static Stream<Float> | stream(float[] self)Returns a sequential Stream with the specified array as its source. | 
| <T> | static List<T> | toList(Stream<T> stream)Accumulates the elements of stream into a new List. | 
| <T> | static List<T> | toList(BaseStream<T, ? extends BaseStream> stream)Accumulates the elements of stream into a new List. | 
| <T> | static Set<T> | toSet(Stream<T> stream)Accumulates the elements of stream into a new Set. | 
| <T> | static Set<T> | toSet(BaseStream<T, ? extends BaseStream> stream)Accumulates the elements of stream into a new Set. | 
Coerce an Optional instance to a boolean value.
optional -  the Optionaltrue if a value is present, otherwise falseReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayReturns a sequential Stream with the specified array as its source.
self -  The array, assumed to be unmodified during useStream for the arrayAccumulates the elements of stream into a new List.
stream -  the Streamjava.util.List instanceAccumulates the elements of stream into a new List.
stream -  the java.util.stream.BaseStreamjava.util.List instanceAccumulates the elements of stream into a new Set.
stream -  the Streamjava.util.Set instanceAccumulates the elements of stream into a new Set.
stream -  the java.util.stream.BaseStreamjava.util.Set instance