supplier

package
v1.2.112 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionalSupplier

type OptionalSupplier interface {
	Get() optional.Optional
}

type OptionalSupplierFunc

type OptionalSupplierFunc func() optional.Optional

func (OptionalSupplierFunc) Get

func (supplier OptionalSupplierFunc) Get() optional.Optional

type Supplier

type Supplier interface {
	/**
	 * Gets a result.
	 *
	 * @return a result
	 */
	Get() interface{}
}

*

  • Represents a supplier of results. *
  • <p>There is no requirement that a new or distinct result be returned each
  • time the supplier is invoked. *
  • <p>This is a <a href="package-summary.html">functional interface</a>
  • whose functional method is {@link #get()}. *
  • @param <T> the type of results supplied by this supplier *
  • @since 1.8

type SupplierFunc

type SupplierFunc func() interface{}

func (SupplierFunc) Get

func (supplier SupplierFunc) Get() interface{}

Jump to

Keyboard shortcuts

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