Class SlimeStream


  • public final class SlimeStream
    extends java.lang.Object
    Simple utility to bridge Slime and Streams.
    Author:
    ogronnesby
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.stream.Stream<T> fromArray​(Inspector array, java.util.function.Function<Inspector,​T> mapper)
      Create a stream from a Slime Inspector pointing to an array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromArray

        public static <T> java.util.stream.Stream<T> fromArray​(Inspector array,
                                                               java.util.function.Function<Inspector,​T> mapper)
        Create a stream from a Slime Inspector pointing to an array.
        Parameters:
        array - the array inspector
        mapper - the function mapping to Stream elements
        Returns:
        A Stream of array elements