Package com.cedarsoftware.util
Class CompactCILinkedSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.cedarsoftware.util.CompactSet<E>
com.cedarsoftware.util.CompactCILinkedSet<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
Similar to CompactSet, except that it uses a LinkedHashSet as delegate Set when
more than compactSize() elements are held. This means that it will uphold the
"linked" contract, maintaining insertion order.
- Author:
- 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
http://www.apache.org/licenses/LICENSE-2.0
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanMethods inherited from class com.cedarsoftware.util.CompactSet
add, clear, compactSize, contains, getNewSet, isEmpty, iterator, remove, sizeMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
CompactCILinkedSet
public CompactCILinkedSet() -
CompactCILinkedSet
-
-
Method Details
-
getNewSet
- Overrides:
getNewSetin classCompactSet<E>- Returns:
- new empty Set instance to use when size() becomes > compactSize().
-
isCaseInsensitive
protected boolean isCaseInsensitive()- Overrides:
isCaseInsensitivein classCompactSet<E>
-