Class ConstantSupplier<T>

java.lang.Object
net.shibboleth.shared.testing.ConstantSupplier<T>
Type Parameters:
T - type of supplier
All Implemented Interfaces:
Supplier<T>, NonnullSupplier<T>

public final class ConstantSupplier<T> extends Object implements NonnullSupplier<T>
Implementaion of NonnullSupplier which returns an unchanging value.
  • Field Details

    • theValue

      @Nonnull private final T theValue
      The value we will return.
  • Constructor Details

    • ConstantSupplier

      public ConstantSupplier(@Nonnull T value)
      Constructor.
      Parameters:
      value - the value to set
  • Method Details