mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/SharedMessageUtils.java
public static SharedMessages.UUID convertUUIDToProtoUUID(final UUID uuid)
    {
        if (uuid != null)
        {
            final SharedMessages.UUID uuidBuilder = SharedMessages.UUID.newBuilder().
                    setLeastSignificantBits(uuid.getLeastSignificantBits()).
                    setMostSignificantBits(uuid.getMostSignificantBits()).build();

            return uuidBuilder;
        }
        throw new IllegalArgumentException("not a valid UUID"); 
    }
/**
     * Convert Java UUID object to UUID protocol buffer message.  
     * @param uuid
     *      Java UUID to be converted.
     * @return
     *      Protocol buffer version of the given UUID.
     */
Convert Java UUID object to UUID protocol buffer message.
@param uuid
Java UUID to be converted.
@return
Protocol buffer version of the given UUID.
Convert Java UUID object to UUID protocol buffer message . @param uuid Java UUID to be converted . @return Protocol buffer version of the given UUID .
public static SharedMessages.UUID convertUUIDToProtoUUID(final UUID uuid)
    {
        if (uuid != null)
        {
            final SharedMessages.UUID uuidBuilder = SharedMessages.UUID.newBuilder().
                    setLeastSignificantBits(uuid.getLeastSignificantBits()).
                    setMostSignificantBits(uuid.getMostSignificantBits()).build();
            return uuidBuilder;
        }
        throw new IllegalArgumentException("not a valid UUID"); 
    }
public static SharedMessages . UUID convertUUIDToProtoUUID ( final UUID uuid ) { if ( uuid != null ) { final SharedMessages . UUID uuidBuilder = SharedMessages . UUID . newBuilder ( ) . setLeastSignificantBits ( uuid . getLeastSignificantBits ( ) ) . setMostSignificantBits ( uuid . getMostSignificantBits ( ) ) . build ( ) ; return uuidBuilder ; } throw new IllegalArgumentException ( "not a valid UUID" ) ; }
Convert Java UUID object to UUID protocol buffer message.
Convert Java UUID object to UUID protocol buffer message .