Package org.jf.util
Class ArraySortedSet<T>
- java.lang.Object
-
- org.jf.util.ArraySortedSet<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.Set<T>,java.util.SortedSet<T>
public class ArraySortedSet<T> extends java.lang.Object implements java.util.SortedSet<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T t)booleanaddAll(java.util.Collection<? extends T> c)voidclear()java.util.Comparator<? super T>comparator()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object o)Tfirst()inthashCode()java.util.SortedSet<T>headSet(T toElement)booleanisEmpty()java.util.Iterator<T>iterator()Tlast()static <T> ArraySortedSet<T>of(java.util.Comparator<? super T> comparator, T[] arr)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.util.SortedSet<T>subSet(T fromElement, T toElement)java.util.SortedSet<T>tailSet(T fromElement)java.lang.Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
Method Detail
-
of
public static <T> ArraySortedSet<T> of(@Nonnull java.util.Comparator<? super T> comparator, @Nonnull T[] arr)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<T> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(T t)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends T> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
comparator
public java.util.Comparator<? super T> comparator()
- Specified by:
comparatorin interfacejava.util.SortedSet<T>
-
subSet
public java.util.SortedSet<T> subSet(T fromElement, T toElement)
- Specified by:
subSetin interfacejava.util.SortedSet<T>
-
headSet
public java.util.SortedSet<T> headSet(T toElement)
- Specified by:
headSetin interfacejava.util.SortedSet<T>
-
tailSet
public java.util.SortedSet<T> tailSet(T fromElement)
- Specified by:
tailSetin interfacejava.util.SortedSet<T>
-
hashCode
public int hashCode()
-
-