A filter is both source and sink.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / Filter.java
index 94c986c..897da01 100644 (file)
@@ -22,26 +22,6 @@ package net.pterodactylus.sonitus.data;
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public interface Filter {
-
-       /**
-        * Returns whether this filter understands the given format.
-        *
-        * @param format
-        *              The format to check for
-        * @return {@code true} if this filter understands the given format, {@code
-        *         false} otherwise
-        */
-       boolean understands(Format format);
-
-       /**
-        * Returns whether this filter can produce the given format.
-        *
-        * @param format
-        *              The format to check for
-        * @return {@code true} if this filter can produce the given format, {@code
-        *         false} otherwise
-        */
-       boolean produces(Format format);
+public interface Filter extends Source, Sink{
 
 }