@ Nonnull public static MockSupplier createConstant ( @ Nonnull final Object aConstant ) { ValueEnforcer . notNull ( aConstant , "Constant" ) ; return new MockSupplier ( aConstant . getClass ( ) , null , aParam -> aConstant ) ; }
Create a mock supplier for a constant value .