diff --git a/src/main/resources/speiger/assets/collections/templates/collections/AbstractCollection.template b/src/main/resources/speiger/assets/collections/templates/collections/AbstractCollection.template index 1627403..e718343 100644 --- a/src/main/resources/speiger/assets/collections/templates/collections/AbstractCollection.template +++ b/src/main/resources/speiger/assets/collections/templates/collections/AbstractCollection.template @@ -16,8 +16,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle #if !TYPE_OBJECT /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated @@ -35,8 +35,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle #if !TYPE_OBJECT /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated @@ -55,8 +55,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle #endif /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated @@ -66,8 +66,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle } /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated @@ -77,8 +77,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle } /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Primitive @@ -88,8 +88,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle } /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Primitive @@ -147,8 +147,8 @@ public abstract class ABSTRACT_COLLECTION KEY_GENERIC_TYPE extends AbstractColle #if !TYPE_OBJECT /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function. + * @deprecated Please use the corresponding type-specific function instead. */ @Override @Deprecated diff --git a/src/main/resources/speiger/assets/collections/templates/collections/BidirectionalIterator.template b/src/main/resources/speiger/assets/collections/templates/collections/BidirectionalIterator.template index 4bfeddf..829b03f 100644 --- a/src/main/resources/speiger/assets/collections/templates/collections/BidirectionalIterator.template +++ b/src/main/resources/speiger/assets/collections/templates/collections/BidirectionalIterator.template @@ -29,8 +29,8 @@ public interface BI_ITERATOR KEY_GENERIC_TYPE extends ITERATOR KEY_GENERIC_TYPE #if !TYPE_OBJECT /** {@inheritDoc} - *
This default implementation delegates to the corresponding type-specific method. - * @deprecated Please use the corresponding type-specific method instead. + *
This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/collections/Collection.template b/src/main/resources/speiger/assets/collections/templates/collections/Collection.template
index 9493cc5..505c41e 100644
--- a/src/main/resources/speiger/assets/collections/templates/collections/Collection.template
+++ b/src/main/resources/speiger/assets/collections/templates/collections/Collection.template
@@ -57,7 +57,7 @@ public interface COLLECTION KEY_GENERIC_TYPE extends Collection This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -140,24 +140,24 @@ public interface COLLECTION KEY_GENERIC_TYPE extends Collection This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
public default boolean add(CLASS_TYPE o) { return add(OBJ_TO_KEY(o)); }
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
public default boolean contains(Object o) { return o != null && contains(CLASS_TO_KEY(o)); }
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/collections/Iterable.template b/src/main/resources/speiger/assets/collections/templates/collections/Iterable.template
index 973f273..25af233 100644
--- a/src/main/resources/speiger/assets/collections/templates/collections/Iterable.template
+++ b/src/main/resources/speiger/assets/collections/templates/collections/Iterable.template
@@ -22,7 +22,7 @@ public interface ITERABLE KEY_GENERIC_TYPE extends Iterable The default implementation behaves as if:
@@ -40,8 +40,8 @@ public interface ITERABLE KEY_GENERIC_TYPE extends Iterable This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Deprecated
@Override
diff --git a/src/main/resources/speiger/assets/collections/templates/collections/Iterator.template b/src/main/resources/speiger/assets/collections/templates/collections/Iterator.template
index c5e0f07..20bf394 100644
--- a/src/main/resources/speiger/assets/collections/templates/collections/Iterator.template
+++ b/src/main/resources/speiger/assets/collections/templates/collections/Iterator.template
@@ -25,8 +25,8 @@ public interface ITERATOR KEY_GENERIC_TYPE extends Iterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -54,8 +54,8 @@ public interface ITERATOR KEY_GENERIC_TYPE extends Iterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Deprecated
@Override
diff --git a/src/main/resources/speiger/assets/collections/templates/collections/Stack.template b/src/main/resources/speiger/assets/collections/templates/collections/Stack.template
index 4601682..fc64cc4 100644
--- a/src/main/resources/speiger/assets/collections/templates/collections/Stack.template
+++ b/src/main/resources/speiger/assets/collections/templates/collections/Stack.template
@@ -44,24 +44,24 @@ public interface STACK extends Stack This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
public default void push(CLASS_TYPE e) { PUSH(OBJ_TO_KEY(e)); }
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
public default CLASS_TYPE pop() { return KEY_TO_OBJ(POP()); }
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -70,8 +70,8 @@ public interface STACK extends Stack This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/functions/Comparator.template b/src/main/resources/speiger/assets/collections/templates/functions/Comparator.template
index c894c4e..e5f9033 100644
--- a/src/main/resources/speiger/assets/collections/templates/functions/Comparator.template
+++ b/src/main/resources/speiger/assets/collections/templates/functions/Comparator.template
@@ -1,6 +1,7 @@
package speiger.src.collections.PACKAGE.functions;
import java.util.Comparator;
+import java.util.Objects;
/**
* Type-Specific Class for Comparator to reduce (un)boxing
@@ -14,12 +15,23 @@ public interface COMPARATOR extends Comparator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
default int compare(CLASS_TYPE o1, CLASS_TYPE o2) {
return compare(OBJ_TO_KEY(o1), OBJ_TO_KEY(o2));
}
+
+ /**
+ * A Wrapper function to convert a Non-Type-Specific Comparator to a Type-Specific-Comparator
+ * @param c comparator to convert
+ * @return the wrapper of the comparator
+ * @throws NullPointerException if the comparator is null
+ */
+ public static COMPARATOR of(Comparator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -44,16 +44,16 @@ public interface CONSUMER extends Consumer This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
default void accept(CLASS_TYPE t) { accept(OBJ_TO_KEY(t)); }
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -64,8 +64,8 @@ public interface CONSUMER extends Consumer This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/lists/AbstractList.template b/src/main/resources/speiger/assets/collections/templates/lists/AbstractList.template
index 930324b..5651c3b 100644
--- a/src/main/resources/speiger/assets/collections/templates/lists/AbstractList.template
+++ b/src/main/resources/speiger/assets/collections/templates/lists/AbstractList.template
@@ -9,29 +9,50 @@ import speiger.src.collections.PACKAGE.collections.ABSTRACT_COLLECTION;
import speiger.src.collections.PACKAGE.collections.COLLECTION;
import speiger.src.collections.PACKAGE.collections.ITERATOR;
+/**
+ * Abstract implementation of the {@link LIST} interface.
+ */
public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION KEY_GENERIC_TYPE implements LIST KEY_GENERIC_TYPE
{
#if !TYPE_OBJECT
+ /**
+ * A Type-Specific implementation of add function that delegates to {@link #add(int, KEY_TYPE)}
+ */
@Override
public boolean add(KEY_TYPE e) {
add(size(), e);
return true;
}
+ /** {@inheritDoc}
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
+ */
@Override
+ @Deprecated
public void add(int index, CLASS_TYPE element) {
add(index, OBJ_TO_KEY(element));
}
+#endif
+ /**
+ * A Type-Specific implementation that iterates over the elements and adds them.
+ * @param c the elements that wants to be added
+ * @return true if the list was modified
+ */
@Override
- public boolean addAll(COLLECTION c) {
+ public boolean addAll(COLLECTION KEY_GENERIC_TYPE c) {
boolean modified = false;
for(KEY_TYPE e : c)
modified |= add(e);
return modified;
}
-#endif
+ /**
+ * A Type-Specific implementation that iterates over the elements and adds them.
+ * @param c the elements that wants to be added
+ * @return true if the list was modified
+ */
@Override
public boolean addAll(LIST KEY_GENERIC_TYPE c) {
boolean modified = false;
@@ -40,7 +61,14 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
return modified;
}
+ /**
+ * The IndexOf implementation iterates over all elements and compares them to the search value.
+ * @param e the value that the index is searched for.
+ * @return index of the value that was searched for. -1 if not found
+ * @deprecated it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
+ */
@Override
+ @Primitive
public int indexOf(Object o) {
LIST_ITERATOR KEY_GENERIC_TYPE iter = listIterator();
#if TYPE_OBJECT
@@ -61,7 +89,14 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
return -1;
}
+ /**
+ * The lastIndexOf implementation iterates over all elements and compares them to the search value.
+ * @param e the value that the index is searched for.
+ * @return the last index of the value that was searched for. -1 if not found
+ * @deprecated it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
+ */
@Override
+ @Primitive
public int lastIndexOf(Object o) {
LIST_ITERATOR KEY_GENERIC_TYPE iter = listIterator(size());
#if TYPE_OBJECT
@@ -83,6 +118,11 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
}
#if !TYPE_OBJECT
+ /**
+ * The indexOf implementation iterates over all elements and compares them to the search value.
+ * @param e the value that the index is searched for.
+ * @return index of the value that was searched for. -1 if not found
+ */
@Override
public int indexOf(KEY_TYPE e) {
LIST_ITERATOR KEY_GENERIC_TYPE iter = listIterator();
@@ -93,6 +133,11 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
return -1;
}
+ /**
+ * The lastIndexOf implementation iterates over all elements and compares them to the search value.
+ * @param e the value that the index is searched for.
+ * @return the last index of the value that was searched for. -1 if not found
+ */
@Override
public int lastIndexOf(KEY_TYPE e) {
LIST_ITERATOR KEY_GENERIC_TYPE iter = listIterator(size());
@@ -104,6 +149,9 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
}
#endif
+ /**
+ * Compares if the list are the same.
+ */
@Override
public boolean equals(Object o) {
if (o == this)
@@ -133,6 +181,9 @@ public abstract class ABSTRACT_LIST KEY_GENERIC_TYPE extends ABSTRACT_COLLECTION
return !(e1.hasNext() || e2.hasNext());
}
+ /**
+ * Generates the hashcode based on the values stored in the list.
+ */
@Override
public int hashCode() {
int hashCode = 1;
diff --git a/src/main/resources/speiger/assets/collections/templates/lists/ArrayList.template b/src/main/resources/speiger/assets/collections/templates/lists/ArrayList.template
index eeba8d8..a7df193 100644
--- a/src/main/resources/speiger/assets/collections/templates/lists/ArrayList.template
+++ b/src/main/resources/speiger/assets/collections/templates/lists/ArrayList.template
@@ -37,16 +37,33 @@ import speiger.src.collections.PACKAGE.utils.IARRAY;
import speiger.src.collections.utils.SanityChecks;
#if TYPE_OBJECT
+/**
+ * A Type-Specific Array-based implementation of list that is written to reduce (un)boxing
+ *
+ * This implementation is optimized to improve how data is processed with interfaces like {@link IARRAY}, {@link Stack}
+ * and with optimized functions that use type-specific implementations for primitives and optimized logic for bulkactions.
+ */
public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE implements IARRAY This implementation is optimized to improve how data is processed with interfaces like {@link IARRAY}, {@link STACK}
+ * and with optimized functions that use type-specific implementations for primitives and optimized logic for bulkactions.
+ */
public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE implements IARRAY, STACK
#endif
{
static final int DEFAULT_ARRAY_SIZE = 10;
+ /** The backing array */
protected transient KEY_TYPE[] data;
+ /** The current size of the elements stored in the backing array */
protected int size = 0;
+ /**
+ * Creates a new ArrayList with a Empty array.
+ */
public ARRAY_LIST() {
#if TYPE_OBJECT
data = (KEY_TYPE[])ARRAYS.EMPTY_ARRAY;
@@ -55,6 +72,9 @@ public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE
#endif
}
+ /**
+ * Creates a new ArrayList with the specific requested size
+ */
public ARRAY_LIST(int size) {
#if TYPE_OBJECT
data = (KEY_TYPE[])new Object[size];
@@ -63,30 +83,48 @@ public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE
#endif
}
+ /**
+ * Creates a new ArrayList a copy with the contents of the Collection.
+ */
public ARRAY_LIST(Collection extends CLASS_TYPE> c) {
this(c.size());
size = ITERATORS.unwrap(data, c.iterator());
}
+ /**
+ * Creates a new ArrayList a copy with the contents of the Collection.
+ */
public ARRAY_LIST(COLLECTION KEY_GENERIC_TYPE c) {
this(c.size());
size = ITERATORS.unwrap(data, c.iterator());
}
+ /**
+ * Creates a new ArrayList a copy with the contents of the List.
+ */
public ARRAY_LIST(LIST KEY_GENERIC_TYPE l) {
this(l.size());
size = l.size();
l.getElements(0, data, 0, size);
}
+ /**
+ * Creates a new ArrayList with a Copy of the array
+ */
public ARRAY_LIST(KEY_TYPE[] a) {
this(a, 0, a.length);
}
+ /**
+ * Creates a new ArrayList with a Copy of the array with a custom length
+ */
public ARRAY_LIST(KEY_TYPE[] a, int length) {
this(a, 0, length);
}
+ /**
+ * Creates a new ArrayList with a Copy of the array with in the custom range.
+ */
public ARRAY_LIST(KEY_TYPE[] a, int offset, int length) {
this(length);
SanityChecks.checkArrayCapacity(a.length, offset, length);
@@ -94,10 +132,16 @@ public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE
size = length;
}
+ /**
+ * Creates a wrapped arraylist that uses the array as backing array
+ */
public static GENERIC_BRACES ARRAY_LIST KEY_GENERIC_TYPE wrap(KEY_TYPE[] a) {
return wrap(a, a.length);
}
+ /**
+ * Creates a wrapped arraylist that uses the array as backing array and a custom fillsize
+ */
public static GENERIC_BRACES ARRAY_LIST KEY_GENERIC_TYPE wrap(KEY_TYPE[] a, int length) {
SanityChecks.checkArrayCapacity(a.length, 0, length);
ARRAY_LIST KEY_GENERIC_TYPE list = new ARRAY_LISTBRACES();
@@ -107,6 +151,9 @@ public class ARRAY_LIST KEY_GENERIC_TYPE extends ABSTRACT_LIST KEY_GENERIC_TYPE
}
#if TYPE_OBJECT
+ /**
+ * Creates a new ArrayList with a EmptyObject array of the Type requested
+ */
public static GENERIC_BRACES ARRAY_LIST KEY_GENERIC_TYPE of(Class The default implementation behaves as if:
+ * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -270,8 +270,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Deprecated
public default void unstableSort(Comparator super CLASS_TYPE> c) {
@@ -317,7 +317,7 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
public LIST KEY_GENERIC_TYPE subList(int from, int to);
/**
- * A Method to ensure the elements are within the requested size.
+ * A function to ensure the elements are within the requested size.
* If smaller then the stored elements they get removed as needed.
* If bigger it is ensured that enough room is provided depending on the implementation
* @param size the requested amount of elements/room for elements
@@ -327,8 +327,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
#if !TYPE_OBJECT
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -337,8 +337,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -347,8 +347,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -357,8 +357,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -367,8 +367,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -377,8 +377,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -387,8 +387,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -397,8 +397,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
}
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -408,8 +408,8 @@ public interface LIST KEY_GENERIC_TYPE extends COLLECTION KEY_GENERIC_TYPE, List
#if !TYPE_BOOLEAN
/** {@inheritDoc}
- * This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/lists/ListIterator.template b/src/main/resources/speiger/assets/collections/templates/lists/ListIterator.template
index 70e5560..95bd36c 100644
--- a/src/main/resources/speiger/assets/collections/templates/lists/ListIterator.template
+++ b/src/main/resources/speiger/assets/collections/templates/lists/ListIterator.template
@@ -20,8 +20,8 @@ public interface LIST_ITERATOR KEY_GENERIC_TYPE extends ListIterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -30,8 +30,8 @@ public interface LIST_ITERATOR KEY_GENERIC_TYPE extends ListIterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -40,8 +40,8 @@ public interface LIST_ITERATOR KEY_GENERIC_TYPE extends ListIterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
@@ -50,8 +50,8 @@ public interface LIST_ITERATOR KEY_GENERIC_TYPE extends ListIterator This default implementation delegates to the corresponding type-specific method.
- * @deprecated Please use the corresponding type-specific method instead.
+ * This default implementation delegates to the corresponding type-specific function.
+ * @deprecated Please use the corresponding type-specific function instead.
*/
@Override
@Deprecated
diff --git a/src/main/resources/speiger/assets/collections/templates/utils/IArray.template b/src/main/resources/speiger/assets/collections/templates/utils/IArray.template
index 2ced7f9..d0a9009 100644
--- a/src/main/resources/speiger/assets/collections/templates/utils/IArray.template
+++ b/src/main/resources/speiger/assets/collections/templates/utils/IArray.template
@@ -19,7 +19,7 @@ public interface IARRAY KEY_GENERIC_TYPE extends IArray
public KEY_TYPE[] elements();
/**
- * Provides the Underlying Array in the Implementation. This method exists purely because of Synchronization wrappers to help run Synchronized Code
+ * Provides the Underlying Array in the Implementation. This function exists purely because of Synchronization wrappers to help run Synchronized Code
* @param action the action that handles the array
* @throws NullPointerException if action is null
* @throws ClassCastException if the return type does not match the underlying array. (Only for Object Implementations)
{@code
+ * for(int i = 0;i