/** * Should I pass the alternate field (or the main field)? * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { Converter field = this.getTargetField(null); if (m_converterNext == field) return -1; // -1 is the code for the base field. int iIndex = 0; for ( ; ; iIndex++) { // Is this one already on my list? Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; // End of list if (converter == field) return iIndex; // Found } if (field == null) return -1; // Never this.addConverterToPass(field); // Add it, and return iIndex; // Return the index to the new converter. } // Override this /**
/** * Should I pass the alternate field (or the main field)? * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { Converter field = this.getTargetField(null); if (m_converterNext == field) return -1; // -1 is the code for the base field. int iIndex = 0; for ( ; ; iIndex++) { // Is this one already on my list? Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; // End of list if (converter == field) return iIndex; // Found } if (field == null) return -1; // Never this.addConverterToPass(field); // Add it, and return iIndex; // Return the index to the new converter. } // Override this /**
/** * Should I pass the alternate field (or the main field)? * @return index (-1)= next converter, 0 - n = List of converters */ public int getIndexOfConverterToPass(boolean bSetData) { Converter field = this.getTargetField(null); if (m_converterNext == field) return -1; // -1 is the code for the base field. int iIndex = 0; for ( ; ; iIndex++) { // Is this one already on my list? Converter converter = this.getConverterToPass(iIndex); if (converter == null) break; // End of list if (converter == field) return iIndex; // Found } if (field == null) return -1; // Never this.addConverterToPass(field); // Add it, and return iIndex; // Return the index to the new converter. } // Override this /**