All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poussecafe.doc.model.processstepdoc.ConsumedMessageExtractionState Maven / Gradle / Ivy

There is a newer version: 0.29.0
Show newest version
package poussecafe.doc.model.processstepdoc;

import java.util.HashSet;
import java.util.Objects;
import javax.lang.model.element.TypeElement;

public class ConsumedMessageExtractionState {

    public ConsumedMessageExtractionState(TypeElement nextTypeElement) {
        withNextTypeElement(nextTypeElement);
    }

    public ConsumedMessageExtractionState withNextTypeElement(TypeElement nextTypeElement) {
        Objects.requireNonNull(nextTypeElement);
        this.nextTypeElement = nextTypeElement;
        return this;
    }

    private TypeElement nextTypeElement;

    public TypeElement nextTypeElement() {
        return nextTypeElement;
    }

    public boolean alreadyExplored(TypeElement classDoc) {
        return alreadyExplored.contains(classDoc.getQualifiedName().toString());
    }

    public void addExplored(TypeElement classDoc) {
        alreadyExplored.add(classDoc.getQualifiedName().toString());
    }

    private HashSet alreadyExplored = new HashSet<>();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy