collection library Collection
Non-aggregating utilities for working with collections.
This includes:
- Bulk operations such as Lists.removeAll.
- Functions for creating a collection from another such as Iterables.toUnmodifiableList.
- Functions for working nullable elements such as NonNullableList.addIfNonNull.
- Move operations that move elements between collections such as MovableList.move.
See sugar.collection.aggregate
for aggregation related utilities.
Classes
Extensions
-
Iterables
on Iterable<
E> - Provides functions for filtering and transforming Iterables into other collections.
-
Lists
on List<
E> - Provides functions for working with Lists.
-
Maps
on Map<
K, V> - Provides functions for working with Maps.
-
MovableList
on List<
E> - Provides functions for moving a list's elements to other collections.
-
MovableSet
on Set<
E> - Provides functions for moving a set's elements to other collections.
-
NonNullableList
on List<
E> - Provides functions for working with Lists of null-nullable elements.
-
NonNullableMap
on Map<
K, V> - Provides functions for working with Maps of null-nullable entries.
-
NonNullableSet
on Set<
E> - Provides functions for working with Sets of null-nullable elements.
-
Sets
on Set<
E> - Provides functions for working with Sets.
-
SplayTreeMaps
on SplayTreeMap<
K, V> - Provides functions for working SplayTreeMaps.