if ((int)newInstance.value(m_AttIndex) == m_SecondIndex) { newInstance.setValue(m_AttIndex, (double)m_FirstIndex); } else if ((int)newInstance.value(m_AttIndex) == m_FirstIndex) { newInstance.setValue(m_AttIndex, (double)m_SecondIndex);
if (!newInstance.isMissing(m_AttIndex)) { if ((int)newInstance.value(m_AttIndex) == m_SecondIndex) { newInstance.setValue(m_AttIndex, (double)m_FirstIndex); } else if ((int)newInstance.value(m_AttIndex) == m_FirstIndex) { newInstance.setValue(m_AttIndex, (double)m_SecondIndex); }
  public boolean input(Instance instance) throws Exception {    if (getInputFormat() == null) {      throw new Exception("No input instance format defined");    }    if (m_NewBatch) {      resetQueue();      m_NewBatch = false;    }    Instance newInstance = (Instance)instance.copy();    if ((int)newInstance.value(m_AttIndex) == m_SecondIndex) {      newInstance.setValue(m_AttIndex, (double)m_FirstIndex);    } else if ((int)newInstance.value(m_AttIndex) == m_FirstIndex) {      newInstance.setValue(m_AttIndex, (double)m_SecondIndex);    }    push(newInstance);    return true;  }