Package com.cedarsoftware.util
Class CompactLinkedSet<E>
java.lang.Object
com.cedarsoftware.util.CompactSet<E>
com.cedarsoftware.util.CompactLinkedSet<E>
- Type Parameters:
E
- the type of elements maintained by this set
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
Deprecated.
- Author:
- John DeRegnaucourt ([email protected]), John DeRegnaucourt ([email protected])
Copyright (c) Cedar Software LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
License
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cedarsoftware.util.CompactSet
CompactSet.Builder<E>
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs an emptyCompactCIHashSet
with case-insensitive configuration.CompactLinkedSet
(Collection<E> other) Deprecated.Constructs aCompactCIHashSet
containing the elements of the specified collection. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.This method is no longer used and has been removed.protected boolean
Deprecated.Indicates that this set is case-insensitive.Methods inherited from class com.cedarsoftware.util.CompactSet
add, addAll, builder, clear, compactSize, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
CompactLinkedSet
public CompactLinkedSet()Deprecated.Constructs an emptyCompactCIHashSet
with case-insensitive configuration.Specifically, it sets the set to be case-insensitive.
- Throws:
IllegalArgumentException
- ifCompactSet.compactSize()
returns a value less than 2
-
CompactLinkedSet
Deprecated.Constructs aCompactCIHashSet
containing the elements of the specified collection.The set will be case-insensitive.
- Parameters:
other
- the collection whose elements are to be placed into this set- Throws:
NullPointerException
- if the specified collection is nullIllegalArgumentException
- ifCompactSet.compactSize()
returns a value less than 2
-
-
Method Details
-
isCaseInsensitive
protected boolean isCaseInsensitive()Deprecated.Indicates that this set is case-insensitive.- Overrides:
isCaseInsensitive
in classCompactSet<E>
- Returns:
true
to denote case-insensitive behavior
-
getNewSet
Deprecated.This method is no longer used and has been removed. It is retained here only to maintain backward compatibility with existing subclasses. New implementations should use the builder pattern to configureCompactSet
.- Overrides:
getNewSet
in classCompactSet<E>
- Returns:
null
as this method is deprecated and no longer functional
-
CompactSet
with builder configurations. This class is no longer recommended for use and may be removed in future releases.Similar to
CompactSet
, but it is configured to be case-insensitive. Instead of using this subclass, please utilizeCompactSet
with the builder to configure case insensitivity, sequence order, and other desired behaviors.Example migration:
This approach reduces the need for multiple specialized subclasses and leverages the flexible builder pattern to achieve the desired configurations.