Class ValueSupplier<V>

java.lang.Object
io.github.douira.glsl_transformer.core.ValueSupplier<V>
All Implemented Interfaces:
Supplier<V>

public class ValueSupplier<V> extends Object implements Supplier<V>
A value supplier is a supplier that just returns a predetermined value.
  • Constructor Details

    • ValueSupplier

      public ValueSupplier(V value)
      Creates a new value supplier with a given value.
      Parameters:
      value - the value to return
  • Method Details

    • get

      public V get()
      Specified by:
      get in interface Supplier<V>