mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-20 19:22:48 +00:00
30 lines
276 B
Java
30 lines
276 B
Java
package com.volmit.iris.util;
|
|
|
|
public class Switch
|
|
{
|
|
private volatile boolean b;
|
|
|
|
/**
|
|
* Defaulted off
|
|
*/
|
|
public Switch()
|
|
{
|
|
b = false;
|
|
}
|
|
|
|
public void flip()
|
|
{
|
|
b = true;
|
|
}
|
|
|
|
public boolean isFlipped()
|
|
{
|
|
return b;
|
|
}
|
|
|
|
public void reset()
|
|
{
|
|
b = false;
|
|
}
|
|
}
|