Package net.neoforged.neoforge.unittest
Class MutableHashedLinkedMapTest
java.lang.Object
net.neoforged.neoforge.unittest.MutableHashedLinkedMapTest
@TestMethodOrder(org.junit.jupiter.api.MethodOrderer.MethodName.class)
public class MutableHashedLinkedMapTest
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.Hash.Strategy
<? super String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> T[]
arr
(T... values) (package private) void
contains()
(package private) void
(package private) void
get()
(package private) void
(package private) void
isEmpty()
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
private static <K> K[]
keysArray
(MutableHashedLinkedMap<K, ?> map) (package private) void
(package private) void
putAfter()
(package private) void
(package private) void
(package private) void
(package private) void
putFirst()
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
private static <K> it.unimi.dsi.fastutil.Hash.Strategy
<K> strat
(ToIntFunction<K> hash, BiPredicate<K, K> equals) (package private) void
stream
(MutableHashedLinkedMap<K, V> map) private static <V> V[]
valuesArray
(MutableHashedLinkedMap<?, V> map)
-
Field Details
-
FIRST_CHARACTER
-
-
Constructor Details
-
MutableHashedLinkedMapTest
public MutableHashedLinkedMapTest()
-
-
Method Details
-
retainsInsertOrder
@Test void retainsInsertOrder() -
retainsInsertOrderAfterOverride
@Test void retainsInsertOrderAfterOverride() -
retainsInsertOrderAfterOverrideWithStrategy
@Test void retainsInsertOrderAfterOverrideWithStrategy() -
strategyCollisionDoesNotOverwriteKey
@Test void strategyCollisionDoesNotOverwriteKey() -
putFirst
@Test void putFirst() -
putAfter
@Test void putAfter() -
putAfterWithStrategy
@Test void putAfterWithStrategy() -
putBefore
@Test void putBefore() -
putBeforeWithStrategy
@Test void putBeforeWithStrategy() -
isEmpty
@Test void isEmpty() -
get
@Test void get() -
getWithStrategy
@Test void getWithStrategy() -
contains
@Test void contains() -
containsWithStrategy
@Test void containsWithStrategy() -
removeHead
@Test void removeHead() -
removeHeadWithStrategy
@Test void removeHeadWithStrategy() -
removeMiddle
@Test void removeMiddle() -
removeMiddleWithStrategy
@Test void removeMiddleWithStrategy() -
removeMultipleMiddle
@Test void removeMultipleMiddle() -
removeMultipleMiddleWithStrategy
@Test void removeMultipleMiddleWithStrategy() -
removeTail
@Test void removeTail() -
removeTailWithStrategy
@Test void removeTailWithStrategy() -
iteratorInOrder
@Test void iteratorInOrder() -
iteratorRemoveHead
@Test void iteratorRemoveHead() -
iteratorRemoveMiddle
@Test void iteratorRemoveMiddle() -
iteratorRemoveEnd
@Test void iteratorRemoveEnd() -
iteratorRemoveAll
@Test void iteratorRemoveAll() -
iteratorRemoveRequiresNext
@Test void iteratorRemoveRequiresNext() -
iteratorNextThrowsOnAdded
@Test void iteratorNextThrowsOnAdded() -
iteratorNextThrowsOnRemoved
@Test void iteratorNextThrowsOnRemoved() -
iteratorRemoveThrowsOnAdded
@Test void iteratorRemoveThrowsOnAdded() -
iteratorRemoveThrowsOnRemoved
@Test void iteratorRemoveThrowsOnRemoved() -
paintingsTest
@Test void paintingsTest() -
strat
private static <K> it.unimi.dsi.fastutil.Hash.Strategy<K> strat(ToIntFunction<K> hash, BiPredicate<K, K> equals) -
arr
-
stream
-
keysArray
-
valuesArray
-