Package org.silverpeas.core.util
Class MemoizedBooleanSupplier
- java.lang.Object
-
- org.silverpeas.core.util.MemoizedBooleanSupplier
-
- All Implemented Interfaces:
BooleanSupplier
public class MemoizedBooleanSupplier extends Object implements BooleanSupplier
Represents a memoized supplier of a boolean result.So same result is returned each time the supplier is invoked.
This is kind of wrapper of a functional interface implementation whose functional method is
getAsBoolean()
()}.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description MemoizedBooleanSupplier(BooleanSupplier supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAsBoolean()
-
-
-
Constructor Detail
-
MemoizedBooleanSupplier
public MemoizedBooleanSupplier(BooleanSupplier supplier)
-
-
Method Detail
-
getAsBoolean
public boolean getAsBoolean()
- Specified by:
getAsBoolean
in interfaceBooleanSupplier
-
-