Package net.minecraft.util.collection
Class SortedArraySet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
net.minecraft.util.collection.SortedArraySet<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
public class SortedArraySet<T> extends AbstractSet<T>
- Mappings:
Namespace Name official agg
intermediary net/minecraft/class_4706
named net/minecraft/util/collection/SortedArraySet
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
SortedArraySet.SetIterator
-
Field Summary
Fields Modifier and Type Field Description private Comparator<T>
comparator
private T[]
elements
private int
size
-
Constructor Summary
Constructors Modifier Constructor Description private
SortedArraySet(int initialCapacity, Comparator<T> comparator)
-
Method Summary
Modifier and Type Method Description boolean
add(T t)
private void
add(T object, int index)
T
addAndGet(T object)
private int
binarySearch(T object)
private static <T> T[]
cast(Object[] array)
void
clear()
boolean
contains(Object object)
static <T extends Comparable<T>>
SortedArraySet<T>create(int initialCapacity)
private void
ensureCapacity(int minCapacity)
boolean
equals(Object object)
T
first()
private T
get(int index)
private static int
insertionPoint(int binarySearchResult)
Iterator<T>
iterator()
private void
remove(int index)
boolean
remove(Object object)
int
size()
Object[]
toArray()
<U> U[]
toArray(U[] u)
Methods inherited from class java.util.AbstractSet
hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, retainAll, spliterator
-
Field Details
-
comparator
- Mappings:
Namespace Name Mixin selector official a
Lagg;a:Ljava/util/Comparator;
intermediary field_21562
Lnet/minecraft/class_4706;field_21562:Ljava/util/Comparator;
named comparator
Lnet/minecraft/util/collection/SortedArraySet;comparator:Ljava/util/Comparator;
-
elements
- Mappings:
Namespace Name Mixin selector official b
Lagg;b:[Ljava/lang/Object;
intermediary field_21563
Lnet/minecraft/class_4706;field_21563:[Ljava/lang/Object;
named elements
Lnet/minecraft/util/collection/SortedArraySet;elements:[Ljava/lang/Object;
-
size
private int size- Mappings:
Namespace Name Mixin selector official c
Lagg;c:I
intermediary field_21564
Lnet/minecraft/class_4706;field_21564:I
named size
Lnet/minecraft/util/collection/SortedArraySet;size:I
-
-
Constructor Details
-
SortedArraySet
- Mappings:
Namespace Name Mixin selector official <init>
Lagg;<init>(ILjava/util/Comparator;)V
intermediary <init>
Lnet/minecraft/class_4706;<init>(ILjava/util/Comparator;)V
named <init>
Lnet/minecraft/util/collection/SortedArraySet;<init>(ILjava/util/Comparator;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lagg;a(I)Lagg;
intermediary method_23859
Lnet/minecraft/class_4706;method_23859(I)Lnet/minecraft/class_4706;
named create
Lnet/minecraft/util/collection/SortedArraySet;create(I)Lnet/minecraft/util/collection/SortedArraySet;
-
cast
- Mappings:
Namespace Name Mixin selector official a
Lagg;a([Ljava/lang/Object;)[Ljava/lang/Object;
intermediary method_23864
Lnet/minecraft/class_4706;method_23864([Ljava/lang/Object;)[Ljava/lang/Object;
named cast
Lnet/minecraft/util/collection/SortedArraySet;cast([Ljava/lang/Object;)[Ljava/lang/Object;
-
binarySearch
- Mappings:
Namespace Name Mixin selector official c
Lagg;c(Ljava/lang/Object;)I
intermediary method_23869
Lnet/minecraft/class_4706;method_23869(Ljava/lang/Object;)I
named binarySearch
Lnet/minecraft/util/collection/SortedArraySet;binarySearch(Ljava/lang/Object;)I
-
insertionPoint
private static int insertionPoint(int binarySearchResult)- Mappings:
Namespace Name Mixin selector official b
Lagg;b(I)I
intermediary method_23866
Lnet/minecraft/class_4706;method_23866(I)I
named insertionPoint
Lnet/minecraft/util/collection/SortedArraySet;insertionPoint(I)I
-
add
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceSet<T>
- Overrides:
add
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official add
Lagg;add(Ljava/lang/Object;)Z
intermediary add
Lnet/minecraft/class_4706;add(Ljava/lang/Object;)Z
named add
Lnet/minecraft/util/collection/SortedArraySet;add(Ljava/lang/Object;)Z
-
ensureCapacity
private void ensureCapacity(int minCapacity)- Mappings:
Namespace Name Mixin selector official c
Lagg;c(I)V
intermediary method_23868
Lnet/minecraft/class_4706;method_23868(I)V
named ensureCapacity
Lnet/minecraft/util/collection/SortedArraySet;ensureCapacity(I)V
-
add
- Mappings:
Namespace Name Mixin selector official a
Lagg;a(Ljava/lang/Object;I)V
intermediary method_23863
Lnet/minecraft/class_4706;method_23863(Ljava/lang/Object;I)V
named add
Lnet/minecraft/util/collection/SortedArraySet;add(Ljava/lang/Object;I)V
-
remove
private void remove(int index)- Mappings:
Namespace Name Mixin selector official d
Lagg;d(I)V
intermediary method_23870
Lnet/minecraft/class_4706;method_23870(I)V
named remove
Lnet/minecraft/util/collection/SortedArraySet;remove(I)V
-
get
- Mappings:
Namespace Name Mixin selector official e
Lagg;e(I)Ljava/lang/Object;
intermediary method_23871
Lnet/minecraft/class_4706;method_23871(I)Ljava/lang/Object;
named get
Lnet/minecraft/util/collection/SortedArraySet;get(I)Ljava/lang/Object;
-
addAndGet
- Mappings:
Namespace Name Mixin selector official a
Lagg;a(Ljava/lang/Object;)Ljava/lang/Object;
intermediary method_23862
Lnet/minecraft/class_4706;method_23862(Ljava/lang/Object;)Ljava/lang/Object;
named addAndGet
Lnet/minecraft/util/collection/SortedArraySet;addAndGet(Ljava/lang/Object;)Ljava/lang/Object;
-
remove
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceSet<T>
- Overrides:
remove
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official remove
Lagg;remove(Ljava/lang/Object;)Z
intermediary remove
Lnet/minecraft/class_4706;remove(Ljava/lang/Object;)Z
named remove
Lnet/minecraft/util/collection/SortedArraySet;remove(Ljava/lang/Object;)Z
-
first
- Mappings:
Namespace Name Mixin selector official b
Lagg;b()Ljava/lang/Object;
intermediary method_23865
Lnet/minecraft/class_4706;method_23865()Ljava/lang/Object;
named first
Lnet/minecraft/util/collection/SortedArraySet;first()Ljava/lang/Object;
-
contains
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceSet<T>
- Overrides:
contains
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official contains
Lagg;contains(Ljava/lang/Object;)Z
intermediary contains
Lnet/minecraft/class_4706;contains(Ljava/lang/Object;)Z
named contains
Lnet/minecraft/util/collection/SortedArraySet;contains(Ljava/lang/Object;)Z
-
iterator
- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Specified by:
iterator
in interfaceSet<T>
- Specified by:
iterator
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official iterator
Lagg;iterator()Ljava/util/Iterator;
intermediary iterator
Lnet/minecraft/class_4706;iterator()Ljava/util/Iterator;
named iterator
Lnet/minecraft/util/collection/SortedArraySet;iterator()Ljava/util/Iterator;
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceSet<T>
- Specified by:
size
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official size
Lagg;size()I
intermediary size
Lnet/minecraft/class_4706;size()I
named size
Lnet/minecraft/util/collection/SortedArraySet;size()I
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceSet<T>
- Overrides:
toArray
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official toArray
Lagg;toArray()[Ljava/lang/Object;
intermediary toArray
Lnet/minecraft/class_4706;toArray()[Ljava/lang/Object;
named toArray
Lnet/minecraft/util/collection/SortedArraySet;toArray()[Ljava/lang/Object;
-
toArray
public <U> U[] toArray(U[] u)- Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceSet<T>
- Overrides:
toArray
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official toArray
Lagg;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
intermediary toArray
Lnet/minecraft/class_4706;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
named toArray
Lnet/minecraft/util/collection/SortedArraySet;toArray([Ljava/lang/Object;)[Ljava/lang/Object;
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceSet<T>
- Overrides:
clear
in classAbstractCollection<T>
- Mappings:
Namespace Name Mixin selector official clear
Lagg;clear()V
intermediary clear
Lnet/minecraft/class_4706;clear()V
named clear
Lnet/minecraft/util/collection/SortedArraySet;clear()V
-
equals
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceSet<T>
- Overrides:
equals
in classAbstractSet<T>
- Mappings:
Namespace Name Mixin selector official equals
Lagg;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_4706;equals(Ljava/lang/Object;)Z
named equals
Lnet/minecraft/util/collection/SortedArraySet;equals(Ljava/lang/Object;)Z
-