1 2 3 4 5 6 7 8 9 10 11 12
package dslog; import java.io.IOException; import java.io.Closeable; interface Versioned extends Closeable { public int version() throws IOException; public static interface Supplier { public Versioned get() throws IOException; } }