Class BackgroundSampler.Latest<T>

java.lang.Object
frc.spectrumLib.util.BackgroundSampler.Latest<T>
Type Parameters:
T - the value type
Enclosing class:
BackgroundSampler

public static final class BackgroundSampler.Latest<T> extends Object
The latest value a background read produced.
  • Constructor Details

    • Latest

      public Latest()
  • Method Details

    • get

      public T get()
      The newest value, or null before the first read finished.
    • sequence

      public long sequence()
      Increments each time a new value lands; compare to see whether one is new.