Class SourceAwareValue<V>

java.lang.Object
ru.vyarus.dropwizard.guice.test.client.util.SourceAwareValue<V>
Type Parameters:
V - value type
All Implemented Interfaces:
Supplier<V>

public class SourceAwareValue<V> extends Object implements Supplier<V>
Value wrapper with a registration source (for debug output).
Since:
03.10.2025
  • Constructor Details

    • SourceAwareValue

      public SourceAwareValue(Supplier<V> supplier, String source)
      Create source value.
      Parameters:
      supplier - value supplier
      source - registration source (for debug output)
  • Method Details

    • get

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

      public String getSource()
      Returns:
      registration source (for debug output)
    • toString

      public String toString()
      Overrides:
      toString in class Object