1 4 package com.tc.net.protocol.transport; 5 6 11 public class TypeOfService { 12 public static final byte TOS_UNSPECIFIED = 0; 13 public static final TypeOfService DEFAULT_TOS = TypeOfService.getInstance(TOS_UNSPECIFIED); 14 15 private final byte value; 16 17 19 public boolean isUnspecified() { 20 return (0 == value); 21 } 22 23 private TypeOfService(byte b) { 24 value = b; 25 } 26 27 public static TypeOfService getInstance(byte b) { 28 return new TypeOfService(b); 30 } 31 32 byte getByteValue() { 33 return value; 34 } 35 } | Popular Tags |