GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Module
  • Package
  • Use
  • Tree
  • Preview
  • New
  • Deprecated
  • Index
  • Help
  • SEARCH

This view

  • Original page
  • New address

GeezerVison is showing docs.oracle.com — IntSupplier (Java SE 21 & JDK 21)

Module java.base
Package java.util.function

Interface IntSupplier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IntSupplier
Represents a supplier of int-valued results. This is the int-producing primitive specialization of Supplier.

There is no requirement that a distinct result be returned each time the supplier is invoked.

This is a functional interface whose functional method is getAsInt().

Since:
1.8
See Also:
  • Supplier
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getAsInt()
    Gets a result.
  • Method Details

    • getAsInt

      int getAsInt()
      Gets a result.
      Returns:
      a result
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.