Package appeng.api.stacks
Class KeyCounter
java.lang.Object
appeng.api.stacks.KeyCounter
public final class KeyCounter
extends Object
implements Iterable<it.unimi.dsi.fastutil.objects.Object2LongMap.Entry<AEKey>>
Associates a generic value of type T with AE keys and makes key/value pairs searchable with fuzzy mode semantics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(KeyCounter other) voidclear()Collection<it.unimi.dsi.fastutil.objects.Object2LongMap.Entry<AEKey>>longit.unimi.dsi.fastutil.objects.Object2LongMap.Entry<AEKey>getFirstEntry(Class<T> keyClass) @Nullable AEKey<T extends AEKey>
TgetFirstKey(Class<T> keyClass) booleanisEmpty()iterator()keySet()voidvoidremoveAll(KeyCounter other) voidvoidreset()voidintsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
KeyCounter
public KeyCounter()
-
-
Method Details
-
findFuzzy
public Collection<it.unimi.dsi.fastutil.objects.Object2LongMap.Entry<AEKey>> findFuzzy(AEKey key, FuzzyMode fuzzy) -
removeZeros
public void removeZeros() -
addAll
-
removeAll
-
add
-
remove
-
set
-
get
-
reset
public void reset() -
clear
public void clear() -
isEmpty
public boolean isEmpty() -
size
public int size() -
iterator
-
getFirstKey
-
getFirstKey
-
getFirstEntry
-
getFirstEntry
-
keySet
-