001package jmri.jmrix.ipocs.protocol.enums; 002 003/** 004 * @author Fredrik Elestedt Copyright (C) 2020 005 * @since 4.21.2 006 */ 007public enum RqInputState { 008 On(1), 009 Off(2), 010 Undefined(3); 011 012 public final byte value; 013 014 private RqInputState(int value) { 015 this.value = (byte)value; 016 } 017 018 public static RqInputState valueOf(byte value) { 019 for (RqInputState e : values()) { 020 if (e.value == value) { 021 return e; 022 } 023 } 024 return null; 025 } 026}