Return a list of metadata blocks because they do have an order.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 3 Jun 2013 20:24:24 +0000 (22:24 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 4 Jun 2013 04:21:45 +0000 (06:21 +0200)
src/main/java/net/pterodactylus/sonitus/io/flac/Stream.java

index 3b4ee59..30a653e 100644 (file)
@@ -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<MetadataBlock> metadataBlocks(final BlockType blockType) {
+       public List<MetadataBlock> metadataBlocks(final BlockType blockType) {
                return FluentIterable.from(metadataBlocks).filter(new Predicate<MetadataBlock>() {
 
                        @Override