01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package java.util;
17:
18: /**
19: * Implements a set using a TreeMap. <a
20: * href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/TreeSet.html">[Sun
21: * docs]</a>
22: *
23: * @param <E> element type.
24: */
25: public class TreeSet<E> extends AbstractSet<E> implements SortedSet<E> {
26:
27: public TreeSet() {
28: // TODO(jat): implement
29: throw new UnsupportedOperationException(
30: "TreeSet not implemented");
31: }
32:
33: public TreeSet(Collection<? extends E> c) {
34: // TODO(jat): implement
35: throw new UnsupportedOperationException(
36: "TreeSet not implemented");
37: }
38:
39: public TreeSet(Comparator<? super E> c) {
40: // TODO(jat): implement
41: throw new UnsupportedOperationException(
42: "TreeSet not implemented");
43: }
44:
45: public TreeSet(SortedSet<E> s) {
46: // TODO(jat): implement
47: throw new UnsupportedOperationException(
48: "TreeSet not implemented");
49: }
50:
51: public Comparator<? super E> comparator() {
52: // TODO(jat): implement
53: return null;
54: }
55:
56: public E first() {
57: // TODO(jat): implement
58: return null;
59: }
60:
61: public SortedSet<E> headSet(E toElement) {
62: // TODO(jat): implement
63: return null;
64: }
65:
66: @Override
67: public Iterator<E> iterator() {
68: // TODO(jat): implement
69: return null;
70: }
71:
72: public E last() {
73: // TODO(jat): implement
74: return null;
75: }
76:
77: @Override
78: public int size() {
79: // TODO(jat): implement
80: return 0;
81: }
82:
83: public SortedSet<E> subSet(E fromElement, E toElement) {
84: // TODO(jat): implement
85: return null;
86: }
87:
88: public SortedSet<E> tailSet(E fromElement) {
89: // TODO(jat): implement
90: return null;
91: }
92:
93: }
|