diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3e8ca83..c20df4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,14 @@
## Change log
----------------------
+Version 4.31
+-------------
+
+ADDED:
+
+- new factory methods with initial capacity for create set objects created
+- new factory methods for primitive array types created
+
Version 4.30.1
-------------
diff --git a/pom.xml b/pom.xml
index 9f7ca86..dad77f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
silly-collections
- 4.30.1
+ 4.31
${project.artifactId}
diff --git a/src/main/java/de/alpharogroup/collections/array/ArrayFactory.java b/src/main/java/de/alpharogroup/collections/array/ArrayFactory.java
index a7f7c8b..b83ee48 100644
--- a/src/main/java/de/alpharogroup/collections/array/ArrayFactory.java
+++ b/src/main/java/de/alpharogroup/collections/array/ArrayFactory.java
@@ -75,4 +75,125 @@ public static Integer[] newRangeArray(final int start, final int end)
return array;
}
+ /**
+ * Factory method for create new array of primitive boolean values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive boolean values that will be in the returned array of
+ * primitive boolean values array.
+ * @return the new array of primitive boolean values
+ */
+ @SafeVarargs
+ public static boolean[] newBooleanArray(final boolean... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive byte values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive byte values that will be in the returned array of primitive
+ * byte values array.
+ * @return the new array of primitive byte values
+ */
+ @SafeVarargs
+ public static byte[] newByteArray(final byte... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive character values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive character values that will be in the returned array of
+ * primitive character values array.
+ * @return the new array of primitive character values
+ */
+ @SafeVarargs
+ public static char[] newCharArray(final char... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive integer values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive integer values that will be in the returned array of
+ * primitive integer values array.
+ * @return the new array of primitive integer values
+ */
+ @SafeVarargs
+ public static int[] newIntArray(final int... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive long values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive long values that will be in the returned array of primitive
+ * long values array.
+ * @return the new array of primitive long values
+ */
+ @SafeVarargs
+ public static long[] newLongArray(final long... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive float values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive float values that will be in the returned array of
+ * primitive float values array.
+ * @return the new array of primitive float values
+ */
+ @SafeVarargs
+ public static float[] newFloatArray(final float... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive double values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive double values that will be in the returned array of
+ * primitive double values array.
+ * @return the new array of primitive double values
+ */
+ @SafeVarargs
+ public static double[] newDoubleArray(final double... elements)
+ {
+ return elements;
+ }
+
+ /**
+ * Factory method for create new array of primitive short values from the given optional
+ * elements.
+ *
+ * @param elements
+ * the optional primitive short values that will be in the returned array of
+ * primitive short values array.
+ * @return the new array of primitive short values
+ */
+ @SafeVarargs
+ public static short[] newShortArray(final short... elements)
+ {
+ return elements;
+ }
+
+
}
diff --git a/src/main/java/de/alpharogroup/collections/pairs/Quattro.java b/src/main/java/de/alpharogroup/collections/pairs/Quattro.java
index 6cabc3e..5589e56 100644
--- a/src/main/java/de/alpharogroup/collections/pairs/Quattro.java
+++ b/src/main/java/de/alpharogroup/collections/pairs/Quattro.java
@@ -63,16 +63,16 @@ public class Quattro implements Serializable
*/
private static final long serialVersionUID = 1L;
- /** The top left value. */
- TL topLeft;
-
- /** The top right value. */
- TR topRight;
-
/** The bottom left value. */
BL bottomLeft;
/** The bottom right value. */
BR bottomRight;
+ /** The top left value. */
+ TL topLeft;
+
+ /** The top right value. */
+ TR topRight;
+
}
diff --git a/src/main/java/de/alpharogroup/collections/set/SetFactory.java b/src/main/java/de/alpharogroup/collections/set/SetFactory.java
index 722c7a5..c20575e 100644
--- a/src/main/java/de/alpharogroup/collections/set/SetFactory.java
+++ b/src/main/java/de/alpharogroup/collections/set/SetFactory.java
@@ -93,9 +93,23 @@ public static final Set newHashSet(final Collection collection, final
*
* @param
* the generic type of the elements
+ * @param initialCapacity
+ * the initial capacity
+ * @return the new {@link HashSet}
+ */
+ public static final Set newHashSet(final int initialCapacity)
+ {
+ return new HashSet<>(initialCapacity);
+ }
+
+ /**
+ * Factory method for create new {@link LinkedHashSet} and will be returned as {@link Set}
+ *
+ * @param
+ * the generic type of the elements
* @param elements
* the elements to add in the new {@link HashSet}
- * @return the new {@link HashSet}
+ * @return the new {@link LinkedHashSet}
*/
@SafeVarargs
public static final Set newLinkedHashSet(final T... elements)
@@ -104,14 +118,28 @@ public static final Set newLinkedHashSet(final T... elements)
}
/**
- * Factory method for create new {@link HashSet} and will be returned as {@link Set}
+ * Factory method for create new {@link LinkedHashSet} and will be returned as {@link Set}
+ *
+ * @param
+ * the generic type of the elements
+ * @param initialCapacity
+ * the initial capacity
+ * @return the new {@link LinkedHashSet}
+ */
+ public static final Set newLinkedHashSet(final int initialCapacity)
+ {
+ return new LinkedHashSet<>(initialCapacity);
+ }
+
+ /**
+ * Factory method for create new {@link LinkedHashSet} and will be returned as {@link Set}
*
* @param
* the generic type of the elements
* @param collection
* the optional collection that will be added to the new list
* @param elements
- * the elements to add in the new {@link HashSet}
+ * the elements to add in the new {@link LinkedHashSet}
* @return the new {@link HashSet}
*/
@SafeVarargs
@@ -135,13 +163,13 @@ public static final Set newLinkedHashSet(final Collection collection,
}
/**
- * Factory method for create new {@link HashSet} and will be returned as {@link Set}
+ * Factory method for create new {@link InsertionOrderSet} and will be returned as {@link Set}
*
* @param
* the generic type of the elements
* @param elements
- * the elements to add in the new {@link HashSet}
- * @return the new {@link HashSet}
+ * the elements to add in the new {@link InsertionOrderSet}
+ * @return the new {@link InsertionOrderSet}
*/
@SafeVarargs
public static final Set newInsertionOrderSet(final T... elements)
@@ -150,15 +178,29 @@ public static final Set newInsertionOrderSet(final T... elements)
}
/**
- * Factory method for create new {@link HashSet} and will be returned as {@link Set}
+ * Factory method for create new {@link InsertionOrderSet} and will be returned as {@link Set}
+ *
+ * @param
+ * the generic type of the elements
+ * @param initialCapacity
+ * the initial capacity
+ * @return the new {@link InsertionOrderSet}
+ */
+ public static final Set newInsertionOrderSet(final int initialCapacity)
+ {
+ return new InsertionOrderSet<>(initialCapacity);
+ }
+
+ /**
+ * Factory method for create new {@link InsertionOrderSet} and will be returned as {@link Set}
*
* @param
* the generic type of the elements
* @param collection
* the optional collection that will be added to the new list
* @param elements
- * the elements to add in the new {@link HashSet}
- * @return the new {@link HashSet}
+ * the elements to add in the new {@link InsertionOrderSet}
+ * @return the new {@link InsertionOrderSet}
*/
@SafeVarargs
public static final Set newInsertionOrderSet(final Collection collection,
@@ -187,7 +229,7 @@ public static final Set newInsertionOrderSet(final Collection collecti
* the generic type of the elements
* @param elements
* the elements to add in the new {@link TreeSet}
- * @return the new {@link TreeSet}
+ * @return the new {@link SortedSet}
*/
@SafeVarargs
public static final SortedSet newTreeSet(final T... elements)
@@ -204,7 +246,7 @@ public static final SortedSet newTreeSet(final T... elements)
* the optional collection that will be added to the new list
* @param elements
* the elements to add in the new {@link TreeSet}
- * @return the new {@link TreeSet}
+ * @return the new {@link SortedSet}
*/
@SafeVarargs
public static final SortedSet newTreeSet(final Collection collection,
diff --git a/src/main/java/de/alpharogroup/comparators/CompareOrder.java b/src/main/java/de/alpharogroup/comparators/CompareOrder.java
index 84f2815..fd88576 100644
--- a/src/main/java/de/alpharogroup/comparators/CompareOrder.java
+++ b/src/main/java/de/alpharogroup/comparators/CompareOrder.java
@@ -31,12 +31,12 @@
*/
public enum CompareOrder
{
+ /** The order to sort an object after. */
+ AFTER(1),
/** The order to sort an object before. */
BEFORE(-1),
/** The order to sort an object as equal. */
- EQUAL(0),
- /** The order to sort an object after. */
- AFTER(1);
+ EQUAL(0);
/** The order. */
@Getter
diff --git a/src/test/java/de/alpharogroup/collections/array/ArrayFactoryTest.java b/src/test/java/de/alpharogroup/collections/array/ArrayFactoryTest.java
index 2cf0f88..dc2380f 100644
--- a/src/test/java/de/alpharogroup/collections/array/ArrayFactoryTest.java
+++ b/src/test/java/de/alpharogroup/collections/array/ArrayFactoryTest.java
@@ -63,6 +63,120 @@ public void testNewArray()
assertEquals(expected, actual);
}
+ /**
+ * Test method for {@link ArrayFactory#newBooleanArray(boolean[])}.
+ */
+ @Test
+ public void testNewBooleanArray()
+ {
+ boolean[] actual;
+ boolean[] expected = { true, true, false };
+ actual = ArrayFactory.newBooleanArray(true, true, false);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new boolean[0];
+ actual = ArrayFactory.newBooleanArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newByteArray(byte[])}.
+ */
+ @Test
+ public void testNewByteArray()
+ {
+ byte[] actual;
+ byte[] expected = { -84, -19, 0, 5, 116, 0, 7, 70, 111, 111, 32, 98, 97, 114 };
+ actual = ArrayFactory.newByteArray((byte)-84, (byte)-19, (byte)0, (byte)5, (byte)116,
+ (byte)0, (byte)7, (byte)70, (byte)111, (byte)111, (byte)32, (byte)98, (byte)97,
+ (byte)114);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new byte[0];
+ actual = ArrayFactory.newByteArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newCharArray(char[])}.
+ */
+ @Test
+ public void testNewCharArray()
+ {
+ char[] actual;
+ char[] expected = { 'f', 'o', 'o' };
+ actual = ArrayFactory.newCharArray('f', 'o', 'o');
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new char[0];
+ actual = ArrayFactory.newCharArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newDoubleArray(double[])}.
+ */
+ @Test
+ public void testNewDoubleArray()
+ {
+ double[] actual;
+ double[] expected = { 1.1D, 2.1D, 3.1D };
+ actual = ArrayFactory.newDoubleArray(1.1D, 2.1D, 3.1D);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new double[0];
+ actual = ArrayFactory.newDoubleArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newFloatArray(float[])}.
+ */
+ @Test
+ public void testNewFloatArray()
+ {
+ float[] actual;
+ float[] expected = { 1.0F, 2.0F, 3.0F };
+ actual = ArrayFactory.newFloatArray(1.0F, 2.0F, 3.0F);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new float[0];
+ actual = ArrayFactory.newFloatArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newIntArray(int[])}.
+ */
+ @Test
+ public void testNewIntArray()
+ {
+ int[] actual;
+ int[] expected = { 1, 2, 3 };
+ actual = ArrayFactory.newIntArray(1, 2, 3);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new int[0];
+ actual = ArrayFactory.newIntArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
+ /**
+ * Test method for {@link ArrayFactory#newLongArray(long[])}.
+ */
+ @Test
+ public void testNewLongArray()
+ {
+ long[] actual;
+ long[] expected = { 1L, 2L, 3L };
+ actual = ArrayFactory.newLongArray(1L, 2L, 3L);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new long[0];
+ actual = ArrayFactory.newLongArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
/**
* Test the method {@link ArrayFactory#newRangeArray(int, int)}
*/
@@ -92,6 +206,22 @@ public void testNewRangeArrayException()
ArrayFactory.newRangeArray(9, 8);
}
+ /**
+ * Test method for {@link ArrayFactory#newShortArray(short[])}.
+ */
+ @Test
+ public void testNewShortArray()
+ {
+ short[] actual;
+ short[] expected = { 1, 2, 3 };
+ actual = ArrayFactory.newShortArray((short)1, (short)2, (short)3);
+ assertTrue(Arrays.equals(actual, expected));
+
+ expected = new short[0];
+ actual = ArrayFactory.newShortArray();
+ assertTrue(Arrays.equals(actual, expected));
+ }
+
/**
* Test method for {@link ArrayFactory} with {@link BeanTester}
*/
diff --git a/src/test/java/de/alpharogroup/collections/iterators/EnumerationIteratorTest.java b/src/test/java/de/alpharogroup/collections/iterators/EnumerationIteratorTest.java
index 2b4d26f..0a86459 100644
--- a/src/test/java/de/alpharogroup/collections/iterators/EnumerationIteratorTest.java
+++ b/src/test/java/de/alpharogroup/collections/iterators/EnumerationIteratorTest.java
@@ -53,6 +53,9 @@ public class EnumerationIteratorTest
private static final Logger logger = LoggerFactory
.getLogger(EnumerationIteratorTest.class.getName());
+ /** The EnumerationIterator. */
+ private EnumerationIterator iterator;
+
/** The List for the test. */
private final List list = new ArrayList()
{
@@ -69,9 +72,6 @@ public class EnumerationIteratorTest
}
};
- /** The EnumerationIterator. */
- private EnumerationIterator iterator;
-
/**
* Sets up method will be invoked before every unit test method in this class.
*
diff --git a/src/test/java/de/alpharogroup/collections/pairs/QuattroTest.java b/src/test/java/de/alpharogroup/collections/pairs/QuattroTest.java
index d3d5646..0a33c7b 100644
--- a/src/test/java/de/alpharogroup/collections/pairs/QuattroTest.java
+++ b/src/test/java/de/alpharogroup/collections/pairs/QuattroTest.java
@@ -66,8 +66,9 @@ public void testEqualsHashcodeAndToString()
final Quattro second = Quattro
. builder().topLeft("left").topRight(employee)
.bottomLeft(customer).bottomRight(ferrari).build();
- final Quattro third = new Quattro<>(1, employee,
- customer, ferrari);
+ Integer topLeft = 1;
+ final Quattro third = new Quattro<>(customer, ferrari,
+ topLeft, employee);
final Quattro fourth = new Quattro<>();
fourth.setTopLeft(1);
fourth.setTopRight(employee);
diff --git a/src/test/java/de/alpharogroup/collections/set/SetFactoryTest.java b/src/test/java/de/alpharogroup/collections/set/SetFactoryTest.java
index 20cd851..81468e3 100644
--- a/src/test/java/de/alpharogroup/collections/set/SetFactoryTest.java
+++ b/src/test/java/de/alpharogroup/collections/set/SetFactoryTest.java
@@ -24,6 +24,7 @@
*/
package de.alpharogroup.collections.set;
+import static org.testng.Assert.assertNotNull;
import static org.testng.AssertJUnit.assertTrue;
import java.lang.reflect.InvocationTargetException;
@@ -53,7 +54,8 @@ public class SetFactoryTest
@Test
public void testNewHashSetCollectionObjects()
{
- Set set = SetFactory.newHashSet();
+ Set set;
+ set = SetFactory.newHashSet();
assertTrue(set.size() == 0);
set.add("foo");
assertTrue(set.size() == 1);
@@ -64,6 +66,18 @@ public void testNewHashSetCollectionObjects()
}
+ /**
+ * Test method for {@link SetFactory#newHashSet(int)}.
+ */
+ @Test
+ public void testNewHashSetInt()
+ {
+ Set set;
+ set = SetFactory.newHashSet(8);
+ assertNotNull(set);
+ assertTrue(set.size() == 0);
+ }
+
/**
* Test for method {@link SetFactory#newHashSet(Object...)}
*/
@@ -94,6 +108,18 @@ public void testNewInsertionOrderSetCollectionObjects()
}
+ /**
+ * Test method for {@link SetFactory#newInsertionOrderSet(int)}.
+ */
+ @Test
+ public void testNewInsertionOrderSetInt()
+ {
+ Set set;
+ set = SetFactory.newInsertionOrderSet(8);
+ assertNotNull(set);
+ assertTrue(set.size() == 0);
+ }
+
/**
* Test for method {@link SetFactory#newInsertionOrderSet(Object...)}
*/
@@ -124,6 +150,18 @@ public void testNewLinkedHashSetCollectionObjects()
}
+ /**
+ * Test method for {@link SetFactory#newLinkedHashSet(int)}.
+ */
+ @Test
+ public void testNewLinkedHashSetInt()
+ {
+ Set set;
+ set = SetFactory.newLinkedHashSet(8);
+ assertNotNull(set);
+ assertTrue(set.size() == 0);
+ }
+
/**
* Test for method {@link SetFactory#newLinkedHashSet(Object...)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/ChainableComparatorTest.java b/src/test/java/de/alpharogroup/comparators/ChainableComparatorTest.java
index a19243b..43531a1 100644
--- a/src/test/java/de/alpharogroup/comparators/ChainableComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/ChainableComparatorTest.java
@@ -43,15 +43,15 @@
public class ChainableComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
/** The comparator. */
ChainableComparator comparator;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link ChainableComparator#compare(Object, Object)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/DateComparatorTest.java b/src/test/java/de/alpharogroup/comparators/DateComparatorTest.java
index df5f5c6..06f7f8d 100644
--- a/src/test/java/de/alpharogroup/comparators/DateComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/DateComparatorTest.java
@@ -43,11 +43,11 @@
public class DateComparatorTest extends BaseComparatorTestCase
{
- final Date past = CreateDateExtensions.newDate(2009, 3, 26, 10, 37, 04);
+ final Date after = CreateDateExtensions.newDate(2010, 3, 27, 10, 37, 04);
final Date before = CreateDateExtensions.newDate(2010, 3, 26, 10, 37, 04);
- final Date after = CreateDateExtensions.newDate(2010, 3, 27, 10, 37, 04);
final Date future = CreateDateExtensions.newDate(2011, 3, 27, 10, 37, 04);
+ final Date past = CreateDateExtensions.newDate(2009, 3, 26, 10, 37, 04);
/**
* {@inheritDoc}
diff --git a/src/test/java/de/alpharogroup/comparators/DescendingDateComparatorTest.java b/src/test/java/de/alpharogroup/comparators/DescendingDateComparatorTest.java
index 00b735c..420048d 100644
--- a/src/test/java/de/alpharogroup/comparators/DescendingDateComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/DescendingDateComparatorTest.java
@@ -44,15 +44,15 @@
public class DescendingDateComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
/** The comparator. */
Comparator comparator;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Sets up method will be invoked before every unit test method
*
diff --git a/src/test/java/de/alpharogroup/comparators/HashCodeComparatorTest.java b/src/test/java/de/alpharogroup/comparators/HashCodeComparatorTest.java
index 6c92efa..963c822 100644
--- a/src/test/java/de/alpharogroup/comparators/HashCodeComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/HashCodeComparatorTest.java
@@ -41,15 +41,15 @@
public class HashCodeComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
/** The comparator. */
Comparator comparator;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Sets up method will be invoked before every unit test method
*
diff --git a/src/test/java/de/alpharogroup/comparators/LocaleComparatorTest.java b/src/test/java/de/alpharogroup/comparators/LocaleComparatorTest.java
index a60368f..f44f417 100644
--- a/src/test/java/de/alpharogroup/comparators/LocaleComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/LocaleComparatorTest.java
@@ -37,12 +37,12 @@
public class LocaleComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link LocaleComparator#compare(Locale, Locale)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/StringComparatorTest.java b/src/test/java/de/alpharogroup/comparators/StringComparatorTest.java
index 401b5a1..33a5f46 100644
--- a/src/test/java/de/alpharogroup/comparators/StringComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/StringComparatorTest.java
@@ -43,15 +43,15 @@
public class StringComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
/** The comparator. */
Comparator comparator;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link StringComparator#compare(String, String)} with null smaller.
diff --git a/src/test/java/de/alpharogroup/comparators/StringLengthComparatorTest.java b/src/test/java/de/alpharogroup/comparators/StringLengthComparatorTest.java
index 97b733f..df5aef8 100644
--- a/src/test/java/de/alpharogroup/comparators/StringLengthComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/StringLengthComparatorTest.java
@@ -39,15 +39,15 @@
public class StringLengthComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
/** The comparator. */
Comparator comparator;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link StringLengthComparator#compare(String, String)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/pairs/KeyMapPairKeyComparatorTest.java b/src/test/java/de/alpharogroup/comparators/pairs/KeyMapPairKeyComparatorTest.java
index f4a4c78..a0cc4a9 100644
--- a/src/test/java/de/alpharogroup/comparators/pairs/KeyMapPairKeyComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/pairs/KeyMapPairKeyComparatorTest.java
@@ -44,12 +44,12 @@
public class KeyMapPairKeyComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link KeyMapPairKeyComparator#compare(Object, Object)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/pairs/KeyValuePairKeyComparatorTest.java b/src/test/java/de/alpharogroup/comparators/pairs/KeyValuePairKeyComparatorTest.java
index 86c61e8..5aedd7c 100644
--- a/src/test/java/de/alpharogroup/comparators/pairs/KeyValuePairKeyComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/pairs/KeyValuePairKeyComparatorTest.java
@@ -40,12 +40,12 @@
public class KeyValuePairKeyComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link KeyValuePairKeyComparator#compare(Object, Object)}
*/
diff --git a/src/test/java/de/alpharogroup/comparators/pairs/KeyValuesPairKeyComparatorTest.java b/src/test/java/de/alpharogroup/comparators/pairs/KeyValuesPairKeyComparatorTest.java
index 2313914..09c6702 100644
--- a/src/test/java/de/alpharogroup/comparators/pairs/KeyValuesPairKeyComparatorTest.java
+++ b/src/test/java/de/alpharogroup/comparators/pairs/KeyValuesPairKeyComparatorTest.java
@@ -43,12 +43,12 @@
public class KeyValuesPairKeyComparatorTest
{
- /** For use of the expected result. */
- boolean expected;
-
/** For use of the result of the comparator. */
int actual;
+ /** For use of the expected result. */
+ boolean expected;
+
/**
* Test method for {@link KeyValuesPairKeyComparator#compare(Object, Object)}
*/