public class SortedArraySet<T>
extends java.util.AbstractSet<T>
Modifier and Type | Class and Description |
---|---|
(package private) class |
SortedArraySet.Itr |
Modifier and Type | Field and Description |
---|---|
private java.util.Comparator<T> |
comparator |
private int |
maxIndex |
private T[] |
storage |
Modifier | Constructor and Description |
---|---|
private |
SortedArraySet(int p_i225697_1_,
java.util.Comparator<T> p_i225697_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T p_add_1_) |
private int |
binarySearch(T p_226182_1_) |
private static <T> T[] |
cast(java.lang.Object[] p_226177_0_) |
void |
clear() |
boolean |
contains(java.lang.Object p_contains_1_) |
boolean |
equals(java.lang.Object p_equals_1_) |
T |
func_226175_a_(T p_226175_1_) |
private void |
func_226176_a_(T p_226176_1_,
int p_226176_2_) |
private static int |
func_226179_b_(int p_226179_0_) |
private void |
func_226181_c_(int p_226181_1_) |
private void |
func_226183_d_(int p_226183_1_) |
private T |
func_226184_e_(int p_226184_1_) |
T |
getSmallest() |
java.util.Iterator<T> |
iterator() |
static <T extends java.lang.Comparable<T>> |
newSet(int p_226172_0_) |
boolean |
remove(java.lang.Object p_remove_1_) |
int |
size() |
java.lang.Object[] |
toArray() |
<U> U[] |
toArray(U[] p_toArray_1_) |
addAll, containsAll, isEmpty, retainAll, toString
private final java.util.Comparator<T> comparator
private T[] storage
private int maxIndex
private SortedArraySet(int p_i225697_1_, java.util.Comparator<T> p_i225697_2_)
public static <T extends java.lang.Comparable<T>> SortedArraySet<T> newSet(int p_226172_0_)
private static <T> T[] cast(java.lang.Object[] p_226177_0_)
private int binarySearch(T p_226182_1_)
private static int func_226179_b_(int p_226179_0_)
public boolean add(T p_add_1_)
private void func_226181_c_(int p_226181_1_)
private void func_226176_a_(T p_226176_1_, int p_226176_2_)
private void func_226183_d_(int p_226183_1_)
private T func_226184_e_(int p_226184_1_)
public boolean remove(java.lang.Object p_remove_1_)
public T getSmallest()
public boolean contains(java.lang.Object p_contains_1_)
public java.util.Iterator<T> iterator()
public int size()
public java.lang.Object[] toArray()
public <U> U[] toArray(U[] p_toArray_1_)
public void clear()