Example usage for javax.lang.model.element TypeElement equals

List of usage examples for javax.lang.model.element TypeElement equals

Introduction

In this page you can find the example usage for javax.lang.model.element TypeElement equals.

Prototype

@Override
boolean equals(Object obj);

Source Link

Document

Returns true if the argument represents the same element as this , or false otherwise.

Usage

From source file:fr.xebia.extras.selma.codegen.CustomMapperWrapper.java

public void addFields(List<TypeElement> childFields) {

    for (TypeElement childField : childFields) {
        boolean found = false;
        for (TypeElement maperField : customMapperFields) {

            if (childField.equals(maperField)) {
                found = true;/*from w w w.  j a  v  a  2  s  . c o m*/
                break;
            }

        }
        if (!found) {
            customMapperFields.add(childField);
        }
    }
}