From f96bea7f14c2de31de0c4ba344174278d0796a41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 3 Jun 2013 22:24:24 +0200 Subject: [PATCH] Return a list of metadata blocks because they do have an order. --- src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.7.4