Class BackgroundSampler.Latest<T>
java.lang.Object
frc.spectrumLib.util.BackgroundSampler.Latest<T>
- Type Parameters:
T- the value type
- Enclosing class:
BackgroundSampler
The latest value a background read produced.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Latest
public Latest()
-
-
Method Details
-
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.
-