Added CompletableFuture Support and fixed a small bug in a test
This commit is contained in:
+1109
-1083
File diff suppressed because it is too large
Load Diff
@@ -153,9 +153,6 @@ public class COLLECTIONS
|
|||||||
/**
|
/**
|
||||||
* Internal Use mainly. Its a collection wrapper with 0 dependencies for those actions where a collector is needed.
|
* Internal Use mainly. Its a collection wrapper with 0 dependencies for those actions where a collector is needed.
|
||||||
*/
|
*/
|
||||||
#if !TYPE_OBJECT
|
|
||||||
@SuppressWarnings("exports")
|
|
||||||
#endif
|
|
||||||
public static GENERIC_KEY_BRACES CollectionWrapper KEY_GENERIC_TYPE wrapper() {
|
public static GENERIC_KEY_BRACES CollectionWrapper KEY_GENERIC_TYPE wrapper() {
|
||||||
return new CollectionWrapperBRACES();
|
return new CollectionWrapperBRACES();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public abstract class BaseInt2IntMapTest
|
|||||||
if(!getValidMapTests().contains(MapTests.PUT)) return;
|
if(!getValidMapTests().contains(MapTests.PUT)) return;
|
||||||
Int2IntMap putMap = createMap(PUT_ARRAY, PUT_VALUE_ARRAY);
|
Int2IntMap putMap = createMap(PUT_ARRAY, PUT_VALUE_ARRAY);
|
||||||
Assert.assertEquals(PUT_ARRAY.length, putMap.size());
|
Assert.assertEquals(PUT_ARRAY.length, putMap.size());
|
||||||
Assert.assertEquals(0, putMap.put(0, 512));
|
Assert.assertEquals(putMap.getDefaultReturnValue(), putMap.put(0, 512));
|
||||||
Assert.assertEquals(1, putMap.put(513, 2));
|
Assert.assertEquals(1, putMap.put(513, 2));
|
||||||
Assert.assertEquals(PUT_ARRAY.length + 1, putMap.size());
|
Assert.assertEquals(PUT_ARRAY.length + 1, putMap.size());
|
||||||
Assert.assertEquals(512, putMap.addTo(0, 1));
|
Assert.assertEquals(512, putMap.addTo(0, 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user