Skip to content

Instantly share code, notes, and snippets.

@yurii-litvinov
Created October 18, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurii-litvinov/8180ca9030c8423ac087f1c0e453c0e4 to your computer and use it in GitHub Desktop.
Save yurii-litvinov/8180ca9030c8423ac087f1c0e453c0e4 to your computer and use it in GitHub Desktop.
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
public interface MyTreeSet<E> extends Set<E> {
/** {@link TreeSet#descendingIterator()} **/
Iterator<E> descendingIterator();
/** {@link TreeSet#descendingSet()} **/
MyTreeSet<E> descendingSet();
/** {@link TreeSet#first()} **/
E first();
/** {@link TreeSet#last()} **/
E last();
/** {@link TreeSet#lower(E)} **/
E lower(E e);
/** {@link TreeSet#floor(E)} **/
E floor(E e);
/** {@link TreeSet#ceiling(E)} **/
E ceiling(E e);
/** {@link TreeSet#higher(E)} **/
E higher(E e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment