Class ValueProvider<T>

java.lang.Object
org.apache.wicket.util.ValueProvider<T>
Type Parameters:
T - type of value this provider provides
All Implemented Interfaces:
Supplier<T>

public class ValueProvider<T> extends Object implements Supplier<T>
Provider that always provides the specified value.
Author:
igor.vaynberg
  • Constructor Details

    • ValueProvider

      public ValueProvider(T value)
      Construct.
      Parameters:
      value - value to provide
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • of

      public static <T> ValueProvider<T> of(T value)
      Creates a provider for the specified value
      Type Parameters:
      T - type of value
      Parameters:
      value - value
      Returns:
      provider