base

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optional

type Optional[T comparable] interface {
	Empty() bool

	Get() (T, error)

	IfPresent(c consumer.Consumer[T])

	IfPresentOrElse(c consumer.Consumer[T], r runnable.Runnable)

	IsPresent() bool

	OrElse(e T) T

	OrElseGet(s supplier.Supplier[T]) T
}

Jump to

Keyboard shortcuts

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