Merge branch 'JABAWS_Release_2_0'
[jabaws.git] / runner / compbio / pipeline / _jpred / Hit.java
diff --git a/runner/compbio/pipeline/_jpred/Hit.java b/runner/compbio/pipeline/_jpred/Hit.java
deleted file mode 100644 (file)
index 5de8e2c..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/* Copyright (c) 2011 Peter Troshin\r
- *  \r
- *  JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0     \r
- * \r
- *  This library is free software; you can redistribute it and/or modify it under the terms of the\r
- *  Apache License version 2 as published by the Apache Software Foundation\r
- * \r
- *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
- *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
- *  License for more details.\r
- * \r
- *  A copy of the license is in apache_license.txt. It is also available here:\r
- * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
- * \r
- * Any republication or derived work distributed in source code form\r
- * must include this copyright and license notice.\r
- */\r
-package compbio.pipeline._jpred;\r
-\r
-import java.util.Comparator;\r
-\r
-public class Hit {\r
-    String name;\r
-    String number;\r
-    String accession;\r
-    String seq;\r
-    String evalue;\r
-\r
-    @Override\r
-    public String toString() {\r
-       return "accession=" + accession + ", name=" + name + ", num=" + number\r
-               + ", evalue=" + evalue + "\n"; // + ", seq=" + seq +\r
-    }\r
-\r
-    @Override\r
-    public int hashCode() {\r
-       final int prime = 31;\r
-       int result = 1;\r
-       result = prime * result + ((name == null) ? 0 : name.hashCode());\r
-       return result;\r
-    }\r
-\r
-    @Override\r
-    public boolean equals(Object obj) {\r
-       if (this == obj)\r
-           return true;\r
-       if (obj == null)\r
-           return false;\r
-       if (getClass() != obj.getClass())\r
-           return false;\r
-       Hit other = (Hit) obj;\r
-       if (name == null) {\r
-           if (other.name != null)\r
-               return false;\r
-       } else if (!name.equals(other.name))\r
-           return false;\r
-       return true;\r
-    }\r
-\r
-    public static final class NumberComporator implements Comparator<Hit> {\r
-       @Override\r
-       public int compare(Hit o1, Hit o2) {\r
-           return Integer.valueOf(o1.number).compareTo(\r
-                   Integer.valueOf(o2.number));\r
-       }\r
-    }\r
-\r
-    public static final class EvalueComporator implements Comparator<Hit> {\r
-       @Override\r
-       public int compare(Hit o1, Hit o2) {\r
-           return Double.valueOf(o1.evalue).compareTo(\r
-                   Double.valueOf(o2.evalue));\r
-       }\r
-    }\r
-}
\ No newline at end of file