keep it as close with archy.js as possible...
[jalview.git] / forester / java / src / org / forester / surfacing / DomainSimilarity.java
index 72d03f1..db25dd5 100644 (file)
@@ -110,7 +110,7 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
         final int s = species_data.size();
         if ( ( ( s * s ) - s ) != ( getN() * 2 ) ) {
             throw new IllegalArgumentException( "illegal species count and n: species count:" + s + ", n:" + _n
-                    + " for domain " + combinable_domains.getKeyDomain() );
+                                                + " for domain " + combinable_domains.getKeyDomain() );
         }
         if ( s > 2 ) {
             if ( getMaximalDifferenceInCounts() < 0 ) {
@@ -159,6 +159,7 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
         }
     }
 
+    @Override
     public int compareTo( final DomainSimilarity domain_similarity ) {
         if ( this == domain_similarity ) {
             return EQUAL;
@@ -191,10 +192,10 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
     /**
      * For pairwise similarities, this should return the "difference"; for example the difference in counts
      * for copy number based features (the same as getMaximalDifferenceInCounts(), or the number
-     * of actually different domain combinations. 
+     * of actually different domain combinations.
      * For pairwise similarities, this should return the difference,
      * while for comparisons of more than two domains, this should return the maximal difference
-     * 
+     *
      */
     public int getMaximalDifference() {
         return _max_difference;
@@ -204,8 +205,8 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
      * For pairwise similarities, this should return the difference in counts,
      * while for comparisons of more than two domains, this should return the maximal difference
      * in counts
-     * 
-     * 
+     *
+     *
      * @return the (maximal) difference in counts
      */
     public int getMaximalDifferenceInCounts() {
@@ -227,7 +228,7 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
     /**
      * This should return the number of pairwise distances used to calculate
      * this similarity score
-     * 
+     *
      * @return the number of pairwise distances
      */
     public int getN() {
@@ -249,8 +250,8 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
     /**
      * This should return a map, which maps species names to
      * SpeciesSpecificDomainSimilariyData
-     * 
-     * 
+     *
+     *
      * @return SortedMap<String, SpeciesSpecificDomainSimilariyData>
      */
     public SortedMap<Species, SpeciesSpecificDcData> getSpeciesData() {
@@ -537,7 +538,7 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
         sb.append( "</td>" );
         sb.append( "<td>" );
         sb.append( "<a href=\"" + SurfacingConstants.GOOGLE_SCHOLAR_SEARCH + getDomainId()
-                + "\" target=\"gs_window\">gs</a>" );
+                   + "\" target=\"gs_window\">gs</a>" );
         sb.append( "</td>" );
         if ( getMaximalSimilarityScore() > 0 ) {
             sb.append( "<td>" );
@@ -629,6 +630,7 @@ public class DomainSimilarity implements Comparable<DomainSimilarity> {
             _base = base;
         }
 
+        @Override
         public int compare( final String a, final String b ) {
             if ( _base.get( a ) >= _base.get( b ) ) {
                 return -1;