@Test public void getCodeByAlias() throws Exception { Assert.assertTrue(ProtocolFactory.getCodeByAlias("xx") == 121); }
public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); }
ProtocolFactory { public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); } }
ProtocolFactory { public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); }  }
ProtocolFactory { public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); }  static Protocol getProtocol(String alias); static Protocol getProtocol(byte code); static Byte getCodeByAlias(String protocol); static Protocol adaptiveProtocol(byte[] magicHeadBytes); static int getMaxMagicOffset(); }
ProtocolFactory { public static Byte getCodeByAlias(String protocol) { return TYPE_CODE_MAP.get(protocol); }  static Protocol getProtocol(String alias); static Protocol getProtocol(byte code); static Byte getCodeByAlias(String protocol); static Protocol adaptiveProtocol(byte[] magicHeadBytes); static int getMaxMagicOffset();  }