stream

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 7 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[T comparable] interface {
	AllMatch(p predicate.Predicate[T]) bool

	AnyMatch(p predicate.Predicate[T]) bool

	Count() int

	Distinct() Stream[T]

	DropWhile(p predicate.Predicate[T]) Stream[T]

	TakeWhile(p predicate.Predicate[T]) Stream[T]

	Empty() bool

	Filter(p predicate.Predicate[T]) Stream[T]

	Iterator() iterator.Iterator[T]

	Generate(s supplier.Supplier[T]) Stream[T]

	Iterate(s T, uo operator.UnaryOperator[T]) Stream[T]

	Limit(c int) Stream[T]

	Max(c comparator.Comparator[T]) base.Optional[T]

	Min(c comparator.Comparator[T]) base.Optional[T]

	Of(e ...T) Stream[T]

	Peek(c consumer.Consumer[T]) Stream[T]

	Skip(n int) Stream[T]

	Sorted(c comparator.Comparator[T]) Stream[T]
}

Jump to

Keyboard shortcuts

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