Class Toggle


  • public class Toggle
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Toggle()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean feed​(boolean input)  
      boolean get()
      This is to be used in a situation were you are not looking to toggle the value, just read
      void reset()
      Reset the current output
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Toggle

        public Toggle()
    • Method Detail

      • feed

        public boolean feed​(boolean input)
      • get

        public boolean get()
        This is to be used in a situation were you are not looking to toggle the value, just read
        Returns:
        Current output of the Toggle
      • reset

        public void reset()
        Reset the current output