streams

package module
v0.0.0-...-affea16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream interface {
	Filter(predicate util.Predicate) Stream
	Map(function util.Function) Stream
	MapBreakable(function util.BreakableFunction) Stream
	FindAny() util.Optional
	Distinct() Stream
	Sorted(c util.Comparator) Stream
	Parallel(cnt uint) Stream
	Reverse() Stream
	ForEach(consumer util.Consumer)
	ForEachBreakable(function util.BreakableConsumer)
	Reduce(identity interface{}, op util.BinaryOperator) interface{}
	ToArray() interface{}
	Collect(collectors.Collector) interface{}
	Sum() float64
	Avg() float64
}

func EmptyStream

func EmptyStream() Stream

func Of

func Of(i interface{}) Stream

type Via

type Via interface {
	Via(streams.Flow) streams.Flow
	Out() <-chan interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL