/*********************************************************************************************************** * * Returns the same data in form of a CDDB. * * @return the CDDB * **********************************************************************************************************/ @Nonnull public Cddb getCddb() { return Cddb.builder().discId(cddb1.split("\\+")[0]) .discLength(Integer.parseInt(cddb1.split("\\+")[1])) .trackFrameOffsets(Stream.of(cddb1.split("\\+")) .skip(3) .mapToInt(Integer::parseInt) .toArray()) .build(); }
final Cddb cddb = Cddb.builder() .discId("") // FIXME .trackFrameOffsets(
/*************************************************************************************************************** * **************************************************************************************************************/ @Nonnull public Cddb getCddb() { return MediaItem.Metadata.Cddb.builder() .discId("") // FIXME .trackFrameOffsets(disc.getOffsetList().getOffset() .stream() .map(offset -> offset.getValue()) .mapToInt(x -> x.intValue()) .toArray()) .build(); }