Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.