converted method

  • type : The converted type. DNA or RNA.

Implementation

EnumBase converted(EnumNucleotideSequenceType type) {
  if (type == EnumNucleotideSequenceType.dna) {
    if (this == EnumBase.u) {
      return EnumBase.t;
    } else {
      return this;
    }
  } else {
    if (this == EnumBase.t) {
      return EnumBase.u;
    } else {
      return this;
    }
  }
}