Ejemplo n.º 1
0
 public static JpsRemoteProto.Message.UUID toProtoUUID(UUID requestId) {
   return JpsRemoteProto.Message.UUID
       .newBuilder()
       .setMostSigBits(requestId.getMostSignificantBits())
       .setLeastSigBits(requestId.getLeastSignificantBits())
       .build();
 }
Ejemplo n.º 2
0
 public static UUID fromProtoUUID(JpsRemoteProto.Message.UUID uuid) {
   return new UUID(uuid.getMostSigBits(), uuid.getLeastSigBits());
 }