Package com.cedarsoftware.util.convert
Class CollectionsWrappers
java.lang.Object
com.cedarsoftware.util.convert.CollectionsWrappers
Provides cached access to common wrapper collection types (unmodifiable, synchronized, empty, checked).
All wrapper instances are pre-initialized in a static block and stored in a cache for reuse to improve
memory efficiency.
All collections are created empty and stored in a static cache. Wrapper collections are immutable and safe for concurrent access across threads.
Provides wrapper types for:
- Unmodifiable collections (Collection, List, Set, SortedSet, NavigableSet)
- Synchronized collections (Collection, List, Set, SortedSet, NavigableSet)
- Empty collections (Collection, List, Set, SortedSet, NavigableSet)
- Checked collections (Collection, List, Set, SortedSet, NavigableSet)
- Author:
- John DeRegnaucourt ([email protected])
Kenny Partlow ([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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Class<Collection<E>>
static <E> Class<NavigableSet<E>>
static <E> Class<Collection<E>>
static <E> Class<NavigableSet<E>>
static <E> Class<Collection<E>>
static <E> Class<NavigableSet<E>>
static <E> Class<Collection<E>>
static <E> Class<NavigableSet<E>>
-
Method Details
-
getUnmodifiableCollectionClass
-
getUnmodifiableListClass
-
getUnmodifiableSetClass
-
getUnmodifiableSortedSetClass
-
getSynchronizedCollectionClass
-
getSynchronizedListClass
-
getSynchronizedSetClass
-
getSynchronizedSortedSetClass
-
getEmptyCollectionClass
-
getEmptyListClass
-
getEmptySetClass
-
getEmptySortedSetClass
-
getCheckedCollectionClass
-
getCheckedListClass
-
getCheckedSetClass
-
getCheckedSortedSetClass
-