From: David ‘Bombe’ Roden Date: Mon, 3 Jun 2013 20:24:24 +0000 (+0200) Subject: Return a list of metadata blocks because they do have an order. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f96bea7f14c2de31de0c4ba344174278d0796a41;p=sonitus.git Return a list of metadata blocks because they do have an order. --- diff --git a/src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java b/src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java index 3b4ee59..30a653e 100644 --- a/src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java +++ b/src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java @@ -22,7 +22,6 @@ import static com.google.common.io.ByteStreams.readFully; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; -import java.util.Collection; import java.util.List; import com.google.common.base.Optional; @@ -62,7 +61,7 @@ public class Stream { * The block type to get all metadata blocks for * @return The metadata blocks of the given block type */ - public Collection metadataBlocks(final BlockType blockType) { + public List metadataBlocks(final BlockType blockType) { return FluentIterable.from(metadataBlocks).filter(new Predicate() { @Override