Iterator fields = type.separatorFieldIterator(); while (fields.hasNext()) { Field field = (Field) fields.next(); String fieldId = JavaGenerator.getFieldId(field.getId()); TypeConverter converter = getConverter(); String fieldType = field.getType(); String fieldGetter = buildSeparatorFieldGetter(field); String equivalenceTest = EquivalentBuilder.buildEquivalent( fieldType, fieldId, "peer." + fieldGetter); print(" && " + equivalenceTest); } }
Iterator fields = type.separatorFieldIterator(); while (fields.hasNext()) { Field field = (Field) fields.next(); String fieldId = JavaGenerator.getFieldId(field.getId()); String fieldType = field.getType(); String fieldGetter = buildSeparatorFieldGetter(field); String equivalenceTest = EquivalentBuilder.buildEquivalent(fieldType, fieldId, "peer." + fieldGetter); print(" && " + equivalenceTest); } }
    private void genSeparatorFieldsEquivalentConjunction() {        Iterator fields = type.separatorFieldIterator();        while (fields.hasNext()) {            Field field = (Field) fields.next();            String fieldId = JavaGenerator.getFieldId(field.getId());            TypeConverter converter = getConverter();            String fieldType = field.getType();            String fieldGetter = buildSeparatorFieldGetter(field);            String equivalenceTest =                EquivalentBuilder.buildEquivalent(                    fieldType,                    fieldId,                    "peer." + fieldGetter);            print(" && " + equivalenceTest);        }    }