/** * Indicates whether this {@link JNDIResourceModel} is associated with the given application. */ default boolean isAssociatedWithApplication(ProjectModel application) { boolean alreadyExists = false; for (ProjectModel existing : getApplications()) { if (existing.equals(application)) { alreadyExists = true; break; } } return alreadyExists; }
/** * Indicates whether this {@link JNDIResourceModel} is associated with the given application. */ default boolean isAssociatedWithApplication(ProjectModel application) { boolean alreadyExists = false; for (ProjectModel existing : getApplications()) { if (existing.equals(application)) { alreadyExists = true; break; } } return alreadyExists; }