/** Generate a {@link #TRACK_ID} that will always match the requested {@link Tracks} details. */ public static String generateTrackId(String name) { return ParserUtils.sanitizeId(name); }
/** * Generate a {@link #VENDOR_ID} that will always match the requested {@link Vendors} details. */ public static String generateVendorId(String companyName) { return ParserUtils.sanitizeId(companyName); }
/** Generate a {@link #BLOCK_ID} that will always match the requested {@link Blocks} details. */ public static String generateBlockId(long startTime, long endTime) { startTime /= DateUtils.SECOND_IN_MILLIS; endTime /= DateUtils.SECOND_IN_MILLIS; return ParserUtils.sanitizeId(startTime + "-" + endTime); }