src/org/jnetpcap/protocol/tcpip/Tcp.java
public static OptionCode valueOf(int id) {
				for (OptionCode c : values()) {
					if (c.id == id) {
						return c;
					}
				}

				return null;
			}
/**
			 * Converts a numerical op code to a enum constant.
			 * 
			 * @param id
			 *          numerical constant to convert
			 * @return enum constant
			 */
Converts a numerical op code to a enum constant.

@param id
numerical constant to convert
@return enum constant
Converts a numerical op code to a enum constant . @param id numerical constant to convert @return enum constant
public static OptionCode valueOf(int id) {
				for (OptionCode c : values()) {
					if (c.id == id) {
						return c;
					}
				}
				return null;
			}
public static OptionCode valueOf ( int id ) { for ( OptionCode c : values ( ) ) { if ( c . id == id ) { return c ; } } return null ; }
Converts a numerical op code to a enum constant.
Converts a numerical op code to a enum constant .