[jOOQ/jOOQ#9506] Added org.jooq.Versions as a result type for
VersionProvider
This commit is contained in:
parent
4f658f01c3
commit
4b3dcb8248
@ -38,13 +38,11 @@
|
||||
package org.jooq;
|
||||
|
||||
/**
|
||||
* A directed, acyclic graph of {@link Version} objects.
|
||||
* <p>
|
||||
* The graph is exposed as {@link Iterable} in no defined iteration order.
|
||||
* A directed, acyclic graph of {@link Version} objects
|
||||
*
|
||||
* @author Lukas Eder
|
||||
*/
|
||||
public interface Versions extends Iterable<Version> {
|
||||
public interface Versions {
|
||||
|
||||
/**
|
||||
* The root version of this graph.
|
||||
|
||||
@ -39,7 +39,6 @@ package org.jooq.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import org.jooq.Version;
|
||||
@ -82,9 +81,4 @@ final class VersionsImpl implements Versions {
|
||||
public final Version get(String id) {
|
||||
return versions.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Iterator<Version> iterator() {
|
||||
return versions.values().iterator();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user