コード例 #1
0
ファイル: JSONRPCResult.java プロジェクト: hsdrose/DAC
 public static ResultType fromID(char id) throws RPCException {
   for (ResultType t : ResultType.values()) {
     if (id == t.id) {
       return t;
     }
   }
   throw new RPCException(JSONRPCError.MISSING_RESULT_TYPE);
 }