X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FFilter.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsonitus%2Fdata%2FFilter.java;h=94c986c9337b486ab0e3cea9dc8ad571341c86d2;hb=367edf1b6da27a73e1f822d7087a3a764ebff3e8;hp=0000000000000000000000000000000000000000;hpb=026df9d8d6f298230a360b0fce99fd854b0633e8;p=sonitus.git
diff --git a/src/main/java/net/pterodactylus/sonitus/data/Filter.java b/src/main/java/net/pterodactylus/sonitus/data/Filter.java
new file mode 100644
index 0000000..94c986c
--- /dev/null
+++ b/src/main/java/net/pterodactylus/sonitus/data/Filter.java
@@ -0,0 +1,47 @@
+/*
+ * Sonitus - Filter.java - Copyright © 2013 David Roden
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package net.pterodactylus.sonitus.data;
+
+/**
+ * A filter processes an input to produce an output.
+ *
+ * @author David âBombeâ Roden
+ */
+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);
+
+}