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