src/org/jnetpcap/protocol/network/Ip4.java
public static Ip4Type valueOf(int type) {
			for (Ip4Type t : values()) {
				for (int i : t.typeValues) {
					if (i == type) {
						return t;
					}
				}
			}

			return null;
		}
/**
		 * Converts a numerical type to constant.
		 * 
		 * @param type
		 *          Ip4 type number
		 * @return constant or null if not found
		 */
Converts a numerical type to constant.

@param type
Ip4 type number
@return constant or null if not found
Converts a numerical type to constant . @param type Ip4 type number @return constant or null if not found
public static Ip4Type valueOf(int type) {
			for (Ip4Type t : values()) {
				for (int i : t.typeValues) {
					if (i == type) {
						return t;
					}
				}
			}
			return null;
		}
public static Ip4Type valueOf ( int type ) { for ( Ip4Type t : values ( ) ) { for ( int i : t . typeValues ) { if ( i == type ) { return t ; } } } return null ; }
Converts a numerical type to constant.
Converts a numerical type to constant .