Class WriteLock<T>
- java.lang.Object
-
- io.github.frc5024.common_drive.queue.WriteLock<T>
-
- Type Parameters:
T
- Datatype
public class WriteLock<T> extends java.lang.Object
A dataclass for storing a value, and if it should be written out or not
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
consume()
Get the value, and set write to falsevoid
write(T value)
Write a value and enable readingvoid
zero()
Set to defaults
-