From 1f7b1a74e8532e2aa7cccccc1e9ad5faa3222473 Mon Sep 17 00:00:00 2001 From: Mike Keesey Date: Tue, 22 May 2012 16:21:57 -0600 Subject: [PATCH] Adding java.util.SortedSet. --- classpath/java/util/SortedSet.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 classpath/java/util/SortedSet.java diff --git a/classpath/java/util/SortedSet.java b/classpath/java/util/SortedSet.java new file mode 100644 index 0000000000..1e1b2b923e --- /dev/null +++ b/classpath/java/util/SortedSet.java @@ -0,0 +1,20 @@ +/* Copyright (c) 2012, Avian Contributors + + Permission to use, copy, modify, and/or distribute this software + for any purpose with or without fee is hereby granted, provided + that the above copyright notice and this permission notice appear + in all copies. + + There is NO WARRANTY for this software. See license.txt for + details. */ + +package java.util; + +public interface SortedSet extends Collection, Iterable, Set { + public Comparator comparator(); + public T first(); + public SortedSet headSet(T toElement); + public T last(); + public SortedSet subSet(T fromElement, T toElement); + public SortedSet tailSet(T fromElement); +}