Example usage for java.util Arrays spliterator

List of usage examples for java.util Arrays spliterator

Introduction

In this page you can find the example usage for java.util Arrays spliterator.

Prototype

public static Spliterator.OfDouble spliterator(double[] array) 

Source Link

Document

Returns a Spliterator.OfDouble covering all of the specified array.

Usage

From source file:org.graylog.plugins.nats.output.AbstractGelfNatsOutput.java

private static String[] splitByNewline(String text) {
    return StreamSupport.stream(Arrays.spliterator(text.split("\n")), false).map(String::trim)
            .filter(s -> !s.isEmpty()).toArray(String[]::new);
}