Package io.netty.util

Interface BooleanSupplier

All Known Subinterfaces:
UncheckedBooleanSupplier

public interface BooleanSupplier
Represents a supplier of boolean-valued results.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final BooleanSupplier
    A supplier which always returns false and never throws.
    static final BooleanSupplier
    A supplier which always returns true and never throws.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    get()
    Gets a boolean value.
  • Field Details

    • FALSE_SUPPLIER

      static final BooleanSupplier FALSE_SUPPLIER
      A supplier which always returns false and never throws.
    • TRUE_SUPPLIER

      static final BooleanSupplier TRUE_SUPPLIER
      A supplier which always returns true and never throws.
  • Method Details

    • get

      boolean get() throws Exception
      Gets a boolean value.
      Returns:
      a boolean value.
      Throws:
      Exception - If an exception occurs.