Пример #1
0
 public static JpsRemoteProto.Message.UUID toProtoUUID(UUID requestId) {
   return JpsRemoteProto.Message.UUID
       .newBuilder()
       .setMostSigBits(requestId.getMostSignificantBits())
       .setLeastSigBits(requestId.getLeastSignificantBits())
       .build();
 }
Пример #2
0
 public static UUID fromProtoUUID(JpsRemoteProto.Message.UUID uuid) {
   return new UUID(uuid.getMostSigBits(), uuid.getLeastSigBits());
 }