
java.util.TreeSet Maven / Gradle / Ivy
/*
* Copyright 2016 Carlos Ballesteros Velasco
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.util;
public class TreeSet extends AbstractSet implements NavigableSet, Cloneable, java.io.Serializable {
TreeSet(NavigableMap m) {
}
public TreeSet() {
}
public TreeSet(Comparator super E> comparator) {
}
public TreeSet(Collection extends E> c) {
}
public TreeSet(SortedSet s) {
}
native public Iterator iterator();
native public Iterator descendingIterator();
native public NavigableSet descendingSet();
native public int size();
native public boolean isEmpty();
native public boolean contains(Object o);
native public boolean add(E e);
native public boolean remove(Object o);
native public void clear();
native public boolean addAll(Collection extends E> c);
native public NavigableSet subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive);
native public NavigableSet headSet(E toElement, boolean inclusive);
native public NavigableSet tailSet(E fromElement, boolean inclusive);
native public SortedSet subSet(E fromElement, E toElement);
native public SortedSet headSet(E toElement);
native public SortedSet tailSet(E fromElement);
native public Comparator super E> comparator();
native public E first();
native public E last();
native public E lower(E e);
native public E floor(E e);
native public E ceiling(E e);
native public E higher(E e);
native public E pollFirst();
native public E pollLast();
native public Object clone();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy