|
29 | 29 | */ |
30 | 30 | public class ABITracerCompoundSet extends AbstractNucleotideCompoundSet<NucleotideCompound> { |
31 | 31 |
|
32 | | - private static class InitaliseOnDemand { |
33 | | - public static final ABITracerCompoundSet INSTANCE = new ABITracerCompoundSet(); |
34 | | - } |
| 32 | + private static class InitaliseOnDemand { |
| 33 | + public static final ABITracerCompoundSet INSTANCE = new ABITracerCompoundSet(); |
| 34 | + } |
35 | 35 |
|
36 | | - public static ABITracerCompoundSet getABITracerCompoundSet() { |
37 | | - return InitaliseOnDemand.INSTANCE; |
38 | | - } |
| 36 | + public static ABITracerCompoundSet getABITracerCompoundSet() { |
| 37 | + return InitaliseOnDemand.INSTANCE; |
| 38 | + } |
39 | 39 |
|
40 | | - public ABITracerCompoundSet() { |
41 | | - addNucleotideCompound("A", "T"); |
42 | | - addNucleotideCompound("T", "A"); |
43 | | - addNucleotideCompound("G", "C"); |
44 | | - addNucleotideCompound("C", "G"); |
45 | | - addNucleotideCompound("N", "N"); |
46 | | - addNucleotideCompound("K", "K"); |
47 | | - addNucleotideCompound("Y", "Y"); |
48 | | - addNucleotideCompound("R", "R"); |
49 | | - addNucleotideCompound("-", "-"); |
50 | | - } |
| 40 | + public ABITracerCompoundSet() { |
| 41 | + addNucleotideCompound("A", "T"); |
| 42 | + addNucleotideCompound("T", "A"); |
| 43 | + addNucleotideCompound("G", "C"); |
| 44 | + addNucleotideCompound("C", "G"); |
| 45 | + addNucleotideCompound("N", "N"); |
| 46 | + addNucleotideCompound("K", "K"); |
| 47 | + addNucleotideCompound("Y", "Y"); |
| 48 | + addNucleotideCompound("R", "R"); |
| 49 | + addNucleotideCompound("-", "-"); |
| 50 | + } |
51 | 51 |
|
52 | | - @Override |
53 | | - public NucleotideCompound newNucleotideCompound(String base, String complement, String... equivalents) { |
54 | | - if(equivalents.length == 0) { |
55 | | - return new NucleotideCompound(base, this, complement); |
56 | | - } |
57 | | - else { |
58 | | - NucleotideCompound[] compounds = new NucleotideCompound[equivalents.length]; |
59 | | - for(int i=0; i<compounds.length; i++) { |
60 | | - compounds[i] = getCompoundForString(equivalents[i]); |
61 | | - } |
62 | | - return new NucleotideCompound(base, this, complement, compounds); |
63 | | - } |
64 | | - } |
| 52 | + @Override |
| 53 | + public NucleotideCompound newNucleotideCompound(String base, String complement, String... equivalents) { |
| 54 | + if(equivalents.length == 0) { |
| 55 | + return new NucleotideCompound(base, this, complement); |
| 56 | + } |
| 57 | + else { |
| 58 | + NucleotideCompound[] compounds = new NucleotideCompound[equivalents.length]; |
| 59 | + for(int i=0; i<compounds.length; i++) { |
| 60 | + compounds[i] = getCompoundForString(equivalents[i]); |
| 61 | + } |
| 62 | + return new NucleotideCompound(base, this, complement, compounds); |
| 63 | + } |
| 64 | + } |
65 | 65 | } |
0 commit comments