X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fprotein%2FBasicProtein.java;h=03bf129ae612e0258d8ef1fa5faadbf4ad0dcd3a;hb=b528989f688291ba7615867e5322090ec42096d8;hp=c793c159f5f691bd74cb92e71fae1e788b5e5a3a;hpb=87d34f343d0262cd0c009c6f1da058a5a217bc64;p=jalview.git diff --git a/forester/java/src/org/forester/protein/BasicProtein.java b/forester/java/src/org/forester/protein/BasicProtein.java index c793c15..03bf129 100644 --- a/forester/java/src/org/forester/protein/BasicProtein.java +++ b/forester/java/src/org/forester/protein/BasicProtein.java @@ -50,16 +50,16 @@ public class BasicProtein implements Protein { private final List _protein_domains; public static Comparator DomainMidPositionComparator = new Comparator() { - @Override - public int compare( final Domain d1, - final Domain d2 ) { - final int m1 = ( d1.getTo() + d1.getFrom() ); - final int m2 = ( d2.getTo() + d2.getFrom() ); - return m1 < m2 ? -1 : m1 > m2 ? 1 : d1 - .getDomainId() - .compareTo( d2.getDomainId() ); - } - }; + @Override + public int compare( final Domain d1, + final Domain d2 ) { + final int m1 = ( d1.getTo() + d1.getFrom() ); + final int m2 = ( d2.getTo() + d2.getFrom() ); + return m1 < m2 ? -1 : m1 > m2 ? 1 : d1 + .getDomainId() + .compareTo( d2.getDomainId() ); + } + }; public BasicProtein( final String id_str, final String species_str, final int length ) { if ( length < 0 ) { @@ -88,10 +88,10 @@ public class BasicProtein implements Protein { * If in_nc_order is set to true, this returns true only and only if * the order in List 'domains' and this protein (as determined by the start positions * of the domains of this proteins, _not_ by their index) are the same - * (interspersing, 'other', domains in this are ignored). + * (interspersing, 'other', domains in this are ignored). * If in_nc_order is set to false, this returns true only and only if * this contains all domains listed in 'domains' (order and count do not matter). - * + * * @param domains a list of domain ids in a certain order. * @param in_nc_order to consider order * @return