Refactoring and Deprecating SortedMap/Sets
- Added: OrderedMap/Set - Added: All Relevant functions into Ordered interface - Changed: Marked all Relevant SortedMap/Set functions Deprecated until 0.6.0 - Fixed: All code that was relevant to this
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
package speiger.src.collections.ints.base;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntOrderedMap;
|
||||
import speiger.src.collections.tests.OrderedMapTests;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public abstract class BaseInt2IntOrderedMapTest extends BaseInt2IntMapTest
|
||||
{
|
||||
@Override
|
||||
public abstract Int2IntOrderedMap createMap(int[] keys, int[] values);
|
||||
@Override
|
||||
public abstract Int2IntOrderedMap createEmptyMap();
|
||||
|
||||
public EnumSet<OrderedMapTests> getValidOrderedMapTests() { return EnumSet.allOf(OrderedMapTests.class); }
|
||||
|
||||
@Test
|
||||
public void testPutMove()
|
||||
{
|
||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.PUT_MOVE)) return;
|
||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertEquals(0, map.putAndMoveToFirst(120, -1));
|
||||
Assert.assertEquals(120, map.firstIntKey());
|
||||
Assert.assertEquals(-1, map.firstIntValue());
|
||||
Assert.assertEquals(0, map.putAndMoveToLast(121, -2));
|
||||
Assert.assertEquals(121, map.lastIntKey());
|
||||
Assert.assertEquals(-2, map.lastIntValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMove()
|
||||
{
|
||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.MOVE)) return;
|
||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertTrue(map.moveToFirst(99));
|
||||
Assert.assertFalse(map.moveToFirst(99));
|
||||
Assert.assertEquals(99, map.firstIntKey());
|
||||
Assert.assertTrue(map.moveToLast(0));
|
||||
Assert.assertFalse(map.moveToLast(0));
|
||||
Assert.assertEquals(0, map.lastIntKey());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetMove()
|
||||
{
|
||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.GET_MOVE)) return;
|
||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertNotEquals(99, map.firstIntValue());
|
||||
Assert.assertEquals(99, map.getAndMoveToFirst(99));
|
||||
Assert.assertEquals(99, map.firstIntValue());
|
||||
Assert.assertNotEquals(0, map.lastIntValue());
|
||||
Assert.assertEquals(0, map.getAndMoveToLast(0));
|
||||
Assert.assertEquals(0, map.lastIntValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFirst()
|
||||
{
|
||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.FIRST)) return;
|
||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertEquals(map.pollFirstIntKey(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLast()
|
||||
{
|
||||
if(!getValidOrderedMapTests().contains(OrderedMapTests.LAST)) return;
|
||||
Int2IntOrderedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertEquals(map.pollLastIntKey(), 99);
|
||||
}
|
||||
}
|
||||
@@ -18,45 +18,6 @@ public abstract class BaseInt2IntSortedMapTest extends BaseInt2IntMapTest
|
||||
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.allOf(SortedMapTests.class); }
|
||||
|
||||
@Test
|
||||
public void testPutMove()
|
||||
{
|
||||
if(!getValidSortedMapTests().contains(SortedMapTests.PUT_MOVE)) return;
|
||||
Int2IntSortedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertEquals(0, map.putAndMoveToFirst(120, -1));
|
||||
Assert.assertEquals(120, map.firstIntKey());
|
||||
Assert.assertEquals(-1, map.firstIntValue());
|
||||
Assert.assertEquals(0, map.putAndMoveToLast(121, -2));
|
||||
Assert.assertEquals(121, map.lastIntKey());
|
||||
Assert.assertEquals(-2, map.lastIntValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMove()
|
||||
{
|
||||
if(!getValidSortedMapTests().contains(SortedMapTests.MOVE)) return;
|
||||
Int2IntSortedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertTrue(map.moveToFirst(99));
|
||||
Assert.assertFalse(map.moveToFirst(99));
|
||||
Assert.assertEquals(99, map.firstIntKey());
|
||||
Assert.assertTrue(map.moveToLast(0));
|
||||
Assert.assertFalse(map.moveToLast(0));
|
||||
Assert.assertEquals(0, map.lastIntKey());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetMove()
|
||||
{
|
||||
if(!getValidSortedMapTests().contains(SortedMapTests.GET_MOVE)) return;
|
||||
Int2IntSortedMap map = createMap(TEST_ARRAY, TEST_ARRAY);
|
||||
Assert.assertNotEquals(99, map.firstIntValue());
|
||||
Assert.assertEquals(99, map.getAndMoveToFirst(99));
|
||||
Assert.assertEquals(99, map.firstIntValue());
|
||||
Assert.assertNotEquals(0, map.lastIntValue());
|
||||
Assert.assertEquals(0, map.getAndMoveToLast(0));
|
||||
Assert.assertEquals(0, map.lastIntValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFirst()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
package speiger.src.collections.ints.base;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import speiger.src.collections.ints.sets.IntOrderedSet;
|
||||
import speiger.src.collections.tests.OrderedSetTest;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public abstract class BaseIntOrderedSetTest extends BaseIntCollectionTest
|
||||
{
|
||||
@Override
|
||||
protected abstract IntOrderedSet create(int[] data);
|
||||
|
||||
protected EnumSet<OrderedSetTest> getValidOrderedSetTests() { return EnumSet.allOf(OrderedSetTest.class); }
|
||||
|
||||
@Test
|
||||
public void addMoveTest() {
|
||||
if(getValidOrderedSetTests().contains(OrderedSetTest.ADD_MOVE)) {
|
||||
IntOrderedSet set = create(TEST_ARRAY);
|
||||
Assert.assertTrue(set.addAndMoveToFirst(1050));
|
||||
Assert.assertFalse(set.addAndMoveToLast(5));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void moveTest() {
|
||||
if(getValidOrderedSetTests().contains(OrderedSetTest.MOVE)) {
|
||||
IntOrderedSet set = create(TEST_ARRAY);
|
||||
Assert.assertTrue(set.moveToFirst(5));
|
||||
Assert.assertFalse(set.moveToFirst(5));
|
||||
Assert.assertTrue(set.moveToLast(5));
|
||||
Assert.assertFalse(set.moveToLast(5));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void peekTest() {
|
||||
if(getValidOrderedSetTests().contains(OrderedSetTest.PEEK)) {
|
||||
IntOrderedSet set = create(TEST_ARRAY);
|
||||
Assert.assertEquals(set.firstInt(), 0);
|
||||
Assert.assertEquals(set.lastInt(), 99);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void pollTest() {
|
||||
if(getValidOrderedSetTests().contains(OrderedSetTest.POLL)) {
|
||||
IntOrderedSet set = create(TEST_ARRAY);
|
||||
for(int i = 0;i<100;i++)
|
||||
{
|
||||
Assert.assertEquals(i, set.pollFirstInt());
|
||||
}
|
||||
set = create(TEST_ARRAY);
|
||||
for(int i = 99;i>=0;i--)
|
||||
{
|
||||
Assert.assertEquals(i, set.pollLastInt());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,26 +16,6 @@ public abstract class BaseIntSortedSetTest extends BaseIntCollectionTest
|
||||
|
||||
protected EnumSet<SortedSetTest> getValidSortedSetTests() { return EnumSet.allOf(SortedSetTest.class); }
|
||||
|
||||
@Test
|
||||
public void addMoveTest() {
|
||||
if(getValidSortedSetTests().contains(SortedSetTest.ADD_MOVE)) {
|
||||
IntSortedSet set = create(TEST_ARRAY);
|
||||
Assert.assertTrue(set.addAndMoveToFirst(1050));
|
||||
Assert.assertFalse(set.addAndMoveToLast(5));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void moveTest() {
|
||||
if(getValidSortedSetTests().contains(SortedSetTest.MOVE)) {
|
||||
IntSortedSet set = create(TEST_ARRAY);
|
||||
Assert.assertTrue(set.moveToFirst(5));
|
||||
Assert.assertFalse(set.moveToFirst(5));
|
||||
Assert.assertTrue(set.moveToLast(5));
|
||||
Assert.assertFalse(set.moveToLast(5));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void peekTest() {
|
||||
if(getValidSortedSetTests().contains(SortedSetTest.PEEK)) {
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
package speiger.src.collections.ints.maps;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseInt2IntNavigableMapTest;
|
||||
import speiger.src.collections.ints.maps.impl.tree.Int2IntAVLTreeMap;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntNavigableMap;
|
||||
import speiger.src.collections.tests.SortedMapTests;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Int2IntAVLTreeMapTest extends BaseInt2IntNavigableMapTest
|
||||
{
|
||||
@Override
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.complementOf(EnumSet.of(SortedMapTests.GET_MOVE, SortedMapTests.MOVE, SortedMapTests.PUT_MOVE)); }
|
||||
|
||||
{
|
||||
@Override
|
||||
public Int2IntNavigableMap createMap(int[] keys, int[] values)
|
||||
{
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
package speiger.src.collections.ints.maps;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseInt2IntSortedMapTest;
|
||||
import speiger.src.collections.ints.base.BaseInt2IntOrderedMapTest;
|
||||
import speiger.src.collections.ints.maps.impl.misc.Int2IntArrayMap;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntSortedMap;
|
||||
import speiger.src.collections.tests.SortedMapTests;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntOrderedMap;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Int2IntArrayMapTest extends BaseInt2IntSortedMapTest
|
||||
{
|
||||
public class Int2IntArrayMapTest extends BaseInt2IntOrderedMapTest
|
||||
{
|
||||
@Override
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.complementOf(EnumSet.of(SortedMapTests.SUB_MAP, SortedMapTests.HEAD_MAP, SortedMapTests.TAIL_MAP)); }
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createMap(int[] keys, int[] values)
|
||||
public Int2IntOrderedMap createMap(int[] keys, int[] values)
|
||||
{
|
||||
return new Int2IntArrayMap(keys, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createEmptyMap()
|
||||
public Int2IntOrderedMap createEmptyMap()
|
||||
{
|
||||
return new Int2IntArrayMap();
|
||||
}
|
||||
|
||||
+6
-12
@@ -1,26 +1,20 @@
|
||||
package speiger.src.collections.ints.maps;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseInt2IntSortedMapTest;
|
||||
import speiger.src.collections.ints.base.BaseInt2IntOrderedMapTest;
|
||||
import speiger.src.collections.ints.maps.impl.customHash.Int2IntLinkedOpenCustomHashMap;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntSortedMap;
|
||||
import speiger.src.collections.tests.SortedMapTests;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntOrderedMap;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Int2IntLinkedOpenCustomHashMapTest extends BaseInt2IntSortedMapTest
|
||||
{
|
||||
public class Int2IntLinkedOpenCustomHashMapTest extends BaseInt2IntOrderedMapTest
|
||||
{
|
||||
@Override
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.complementOf(EnumSet.of(SortedMapTests.SUB_MAP, SortedMapTests.TAIL_MAP, SortedMapTests.HEAD_MAP)); }
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createMap(int[] keys, int[] values)
|
||||
public Int2IntOrderedMap createMap(int[] keys, int[] values)
|
||||
{
|
||||
return new Int2IntLinkedOpenCustomHashMap(keys, values, STRATEGY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createEmptyMap()
|
||||
public Int2IntOrderedMap createEmptyMap()
|
||||
{
|
||||
return new Int2IntLinkedOpenCustomHashMap(STRATEGY);
|
||||
}
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
package speiger.src.collections.ints.maps;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseInt2IntSortedMapTest;
|
||||
import speiger.src.collections.ints.base.BaseInt2IntOrderedMapTest;
|
||||
import speiger.src.collections.ints.maps.impl.hash.Int2IntLinkedOpenHashMap;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntSortedMap;
|
||||
import speiger.src.collections.tests.SortedMapTests;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntOrderedMap;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Int2IntLinkedOpenHashMapTest extends BaseInt2IntSortedMapTest
|
||||
public class Int2IntLinkedOpenHashMapTest extends BaseInt2IntOrderedMapTest
|
||||
{
|
||||
@Override
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.complementOf(EnumSet.of(SortedMapTests.SUB_MAP, SortedMapTests.TAIL_MAP, SortedMapTests.HEAD_MAP)); }
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createMap(int[] keys, int[] values)
|
||||
public Int2IntOrderedMap createMap(int[] keys, int[] values)
|
||||
{
|
||||
return new Int2IntLinkedOpenHashMap(keys, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Int2IntSortedMap createEmptyMap()
|
||||
public Int2IntOrderedMap createEmptyMap()
|
||||
{
|
||||
return new Int2IntLinkedOpenHashMap();
|
||||
}
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
package speiger.src.collections.ints.maps;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseInt2IntNavigableMapTest;
|
||||
import speiger.src.collections.ints.maps.impl.tree.Int2IntRBTreeMap;
|
||||
import speiger.src.collections.ints.maps.interfaces.Int2IntNavigableMap;
|
||||
import speiger.src.collections.tests.SortedMapTests;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Int2IntRBTreeMapTest extends BaseInt2IntNavigableMapTest
|
||||
{
|
||||
@Override
|
||||
public EnumSet<SortedMapTests> getValidSortedMapTests() { return EnumSet.complementOf(EnumSet.of(SortedMapTests.GET_MOVE, SortedMapTests.MOVE, SortedMapTests.PUT_MOVE)); }
|
||||
|
||||
@Override
|
||||
public Int2IntNavigableMap createMap(int[] keys, int[] values)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package speiger.src.collections.ints.sets;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseIntNavigableSetTest;
|
||||
import speiger.src.collections.tests.SortedSetTest;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IntAVLTreeSetTests extends BaseIntNavigableSetTest
|
||||
@@ -12,7 +9,4 @@ public class IntAVLTreeSetTests extends BaseIntNavigableSetTest
|
||||
protected IntNavigableSet create(int[] data) {
|
||||
return new IntAVLTreeSet(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected EnumSet<SortedSetTest> getValidSortedSetTests() { return EnumSet.of(SortedSetTest.PEEK, SortedSetTest.POLL, SortedSetTest.HEAD_SET, SortedSetTest.SUB_SET, SortedSetTest.TAIL_SET);}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
package speiger.src.collections.ints.sets;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseIntSortedSetTest;
|
||||
import speiger.src.collections.tests.SortedSetTest;
|
||||
import speiger.src.collections.ints.base.BaseIntOrderedSetTest;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IntArraySetTests extends BaseIntSortedSetTest
|
||||
public class IntArraySetTests extends BaseIntOrderedSetTest
|
||||
{
|
||||
@Override
|
||||
protected EnumSet<SortedSetTest> getValidSortedSetTests() { return EnumSet.complementOf(EnumSet.of(SortedSetTest.SUB_SET, SortedSetTest.HEAD_SET, SortedSetTest.TAIL_SET)); }
|
||||
@Override
|
||||
protected IntSortedSet create(int[] data) { return new IntArraySet(data.clone()); }
|
||||
protected IntOrderedSet create(int[] data) { return new IntArraySet(data.clone()); }
|
||||
}
|
||||
|
||||
@@ -3,21 +3,14 @@ package speiger.src.collections.ints.sets;
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseIntCollectionTest;
|
||||
import speiger.src.collections.ints.base.BaseIntSortedSetTest;
|
||||
import speiger.src.collections.ints.base.BaseIntOrderedSetTest;
|
||||
import speiger.src.collections.ints.collections.IntCollection;
|
||||
import speiger.src.collections.ints.utils.IntStrategy;
|
||||
import speiger.src.collections.tests.CollectionTest;
|
||||
import speiger.src.collections.tests.SortedSetTest;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IntHashSetTests
|
||||
{
|
||||
public static abstract class BaseIntOpenHashSetTests extends BaseIntSortedSetTest
|
||||
{
|
||||
@Override
|
||||
protected EnumSet<SortedSetTest> getValidSortedSetTests() { return EnumSet.of(SortedSetTest.ADD_MOVE, SortedSetTest.MOVE, SortedSetTest.PEEK, SortedSetTest.POLL); }
|
||||
}
|
||||
|
||||
public static class IntOpenHashSetTests extends BaseIntCollectionTest
|
||||
{
|
||||
@Override
|
||||
@@ -32,10 +25,10 @@ public class IntHashSetTests
|
||||
}
|
||||
}
|
||||
|
||||
public static class IntLinkedOpenHashSetTests extends BaseIntOpenHashSetTests
|
||||
public static class IntLinkedOpenHashSetTests extends BaseIntOrderedSetTest
|
||||
{
|
||||
@Override
|
||||
protected IntSortedSet create(int[] data) { return new IntLinkedOpenHashSet(data); }
|
||||
protected IntOrderedSet create(int[] data) { return new IntLinkedOpenHashSet(data); }
|
||||
}
|
||||
|
||||
public static class IntOpenCustomHashSetTests extends BaseIntCollectionTest
|
||||
@@ -52,10 +45,10 @@ public class IntHashSetTests
|
||||
}
|
||||
}
|
||||
|
||||
public static class IntLinkedOpenCustomHashSetTests extends BaseIntOpenHashSetTests
|
||||
public static class IntLinkedOpenCustomHashSetTests extends BaseIntOrderedSetTest
|
||||
{
|
||||
@Override
|
||||
protected IntSortedSet create(int[] data) { return new IntLinkedOpenCustomHashSet(data, new DefaultStrategy()); }
|
||||
protected IntOrderedSet create(int[] data) { return new IntLinkedOpenCustomHashSet(data, new DefaultStrategy()); }
|
||||
}
|
||||
|
||||
public static class DefaultStrategy implements IntStrategy
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package speiger.src.collections.ints.sets;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
import speiger.src.collections.ints.base.BaseIntNavigableSetTest;
|
||||
import speiger.src.collections.tests.SortedSetTest;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IntRBTreeSetTests extends BaseIntNavigableSetTest
|
||||
@@ -13,7 +10,4 @@ public class IntRBTreeSetTests extends BaseIntNavigableSetTest
|
||||
protected IntNavigableSet create(int[] data) {
|
||||
return new IntRBTreeSet(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected EnumSet<SortedSetTest> getValidSortedSetTests() { return EnumSet.of(SortedSetTest.PEEK, SortedSetTest.POLL, SortedSetTest.HEAD_SET, SortedSetTest.SUB_SET, SortedSetTest.TAIL_SET);}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package speiger.src.collections.tests;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public enum OrderedMapTests
|
||||
{
|
||||
PUT_MOVE,
|
||||
MOVE,
|
||||
GET_MOVE,
|
||||
FIRST,
|
||||
LAST;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package speiger.src.collections.tests;
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public enum OrderedSetTest
|
||||
{
|
||||
ADD_MOVE,
|
||||
MOVE,
|
||||
PEEK,
|
||||
POLL;
|
||||
}
|
||||
@@ -3,9 +3,6 @@ package speiger.src.collections.tests;
|
||||
@SuppressWarnings("javadoc")
|
||||
public enum SortedMapTests
|
||||
{
|
||||
PUT_MOVE,
|
||||
MOVE,
|
||||
GET_MOVE,
|
||||
FIRST,
|
||||
LAST,
|
||||
SUB_MAP,
|
||||
|
||||
@@ -3,8 +3,6 @@ package speiger.src.collections.tests;
|
||||
@SuppressWarnings("javadoc")
|
||||
public enum SortedSetTest
|
||||
{
|
||||
ADD_MOVE,
|
||||
MOVE,
|
||||
PEEK,
|
||||
POLL,
|
||||
SUB_SET,
|
||||
|
||||
Reference in New Issue
Block a user