New Fixes
- Fixed: ObjectLists Crashed when a null was provided as a Comparator. (Unless the List was Initialized with the ClassType) - Fixed: LinkedLists didn't implement add(Object) - Fixed: Object Collections did have the JavaCollections deprecated as the Constructor. This should only be deprecated for Primitives - Added: Tests with 5k Random names for Object sorting. - Changed: Object Arrays no longer require a Comparable[] it just assumes now that the elements in the Array are Comparable
This commit is contained in:
@@ -115,7 +115,7 @@ public class RB_TREE_SET KEY_GENERIC_TYPE extends ABSTRACT_SET KEY_GENERIC_TYPE
|
||||
* A Helper constructor that allows to create a Set with exactly the same values as the provided collection.
|
||||
* @param collection the set the elements should be added to the TreeSet
|
||||
*/
|
||||
@Deprecated
|
||||
@Primitive
|
||||
public RB_TREE_SET(Collection<? extends CLASS_TYPE> collection) {
|
||||
addAll(collection);
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class RB_TREE_SET KEY_GENERIC_TYPE extends ABSTRACT_SET KEY_GENERIC_TYPE
|
||||
* @param collection the set the elements should be added to the TreeSet
|
||||
* @param comp the sorter of the tree, can be null
|
||||
*/
|
||||
@Deprecated
|
||||
@Primitive
|
||||
public RB_TREE_SET(Collection<? extends CLASS_TYPE> collection, COMPARATOR KEY_GENERIC_TYPE comp) {
|
||||
comparator = comp;
|
||||
addAll(collection);
|
||||
|
||||
Reference in New Issue
Block a user