1 /*
2 * Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package java.util;
28
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public class TreeSet<E> extends java.util.AbstractSet<E> implements java.util.NavigableSet<E>, java.lang.Cloneable, java.io.Serializable {
31
TreeSet()32 public TreeSet() { throw new RuntimeException("Stub!"); }
33
TreeSet(java.util.Comparator<? super E> comparator)34 public TreeSet(java.util.Comparator<? super E> comparator) { throw new RuntimeException("Stub!"); }
35
TreeSet(java.util.Collection<? extends E> c)36 public TreeSet(java.util.Collection<? extends E> c) { throw new RuntimeException("Stub!"); }
37
TreeSet(java.util.SortedSet<E> s)38 public TreeSet(java.util.SortedSet<E> s) { throw new RuntimeException("Stub!"); }
39
iterator()40 public java.util.Iterator<E> iterator() { throw new RuntimeException("Stub!"); }
41
descendingIterator()42 public java.util.Iterator<E> descendingIterator() { throw new RuntimeException("Stub!"); }
43
descendingSet()44 public java.util.NavigableSet<E> descendingSet() { throw new RuntimeException("Stub!"); }
45
size()46 public int size() { throw new RuntimeException("Stub!"); }
47
isEmpty()48 public boolean isEmpty() { throw new RuntimeException("Stub!"); }
49
contains(java.lang.Object o)50 public boolean contains(java.lang.Object o) { throw new RuntimeException("Stub!"); }
51
add(E e)52 public boolean add(E e) { throw new RuntimeException("Stub!"); }
53
remove(java.lang.Object o)54 public boolean remove(java.lang.Object o) { throw new RuntimeException("Stub!"); }
55
clear()56 public void clear() { throw new RuntimeException("Stub!"); }
57
addAll(java.util.Collection<? extends E> c)58 public boolean addAll(java.util.Collection<? extends E> c) { throw new RuntimeException("Stub!"); }
59
subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)60 public java.util.NavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) { throw new RuntimeException("Stub!"); }
61
headSet(E toElement, boolean inclusive)62 public java.util.NavigableSet<E> headSet(E toElement, boolean inclusive) { throw new RuntimeException("Stub!"); }
63
tailSet(E fromElement, boolean inclusive)64 public java.util.NavigableSet<E> tailSet(E fromElement, boolean inclusive) { throw new RuntimeException("Stub!"); }
65
subSet(E fromElement, E toElement)66 public java.util.SortedSet<E> subSet(E fromElement, E toElement) { throw new RuntimeException("Stub!"); }
67
headSet(E toElement)68 public java.util.SortedSet<E> headSet(E toElement) { throw new RuntimeException("Stub!"); }
69
tailSet(E fromElement)70 public java.util.SortedSet<E> tailSet(E fromElement) { throw new RuntimeException("Stub!"); }
71
comparator()72 public java.util.Comparator<? super E> comparator() { throw new RuntimeException("Stub!"); }
73
first()74 public E first() { throw new RuntimeException("Stub!"); }
75
last()76 public E last() { throw new RuntimeException("Stub!"); }
77
lower(E e)78 public E lower(E e) { throw new RuntimeException("Stub!"); }
79
floor(E e)80 public E floor(E e) { throw new RuntimeException("Stub!"); }
81
ceiling(E e)82 public E ceiling(E e) { throw new RuntimeException("Stub!"); }
83
higher(E e)84 public E higher(E e) { throw new RuntimeException("Stub!"); }
85
pollFirst()86 public E pollFirst() { throw new RuntimeException("Stub!"); }
87
pollLast()88 public E pollLast() { throw new RuntimeException("Stub!"); }
89
90 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
addFirst(E e)91 public void addFirst(E e) { throw new RuntimeException("Stub!"); }
92
93 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_V_APIS)
addLast(E e)94 public void addLast(E e) { throw new RuntimeException("Stub!"); }
95
clone()96 public java.lang.Object clone() { throw new RuntimeException("Stub!"); }
97
spliterator()98 public java.util.Spliterator<E> spliterator() { throw new RuntimeException("Stub!"); }
99 }
100
101