Skip to content

Instantly share code, notes, and snippets.

@shomah4a
Created January 16, 2015 02:05
Show Gist options
  • Save shomah4a/fbee5f2dd27d9a8ba106 to your computer and use it in GitHub Desktop.
Save shomah4a/fbee5f2dd27d9a8ba106 to your computer and use it in GitHub Desktop.
interface Collection<T> {
public Iterator<T> iterator();
}
interface Ordered<T> extends Collection<T> {
}
interface List<T> extends Ordered<T> {
}
interface Set<T> extends Collection<T> {
}
interface OrderedSet<T> extends Set<T>, Ordered<T> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment