diff --git a/app/src/main/java/lightcontainer/protocol/Protocol.java b/app/src/main/java/lightcontainer/protocol/Protocol.java deleted file mode 100644 index 07bb621..0000000 --- a/app/src/main/java/lightcontainer/protocol/Protocol.java +++ /dev/null @@ -1,117 +0,0 @@ -package lightcontainer.protocol; - -import java.util.ArrayList; -import java.util.List; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Protocol - *
- * Class allowing to define new rules for the LightContainer protocol,
- * also provides utility functions to work with regexes and the command to compare.
- *
- * @author Jérémi NIHART
- * This function allows you to check a command and process those groups (parameters)
- * use the utility functions of {@link Protocol} to facilitate processing, see @see.
- *
- * @param cmd Command on which to execute the rule.
- * @see Protocol#execute(String)
- * @see #matcherCheck(String)
- * @see #matcherGetGroups()
- * @since 1.0
- */
- public abstract void execute(String cmd);
-
- /**
- * Retrieve, the hashcode of the rule.
- *
- * @return Rule hashcode.
- * @since 1.0
- */
- @Override
- public int hashCode() {
- return rule.hashCode() % 8;
- }
-
- /**
- * Compare the equality of two rules.
- *
- * @return True : if the rules are equals
- * False if not.
- * @since 1.0
- */
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) return true;
- if (!(obj instanceof Protocol)) return false;
- final Protocol other = (Protocol) obj;
- return hashCode() == other.hashCode();
- }
-}