Static methods operating on collections and maps.
This class consists exclusively of static methods that operate on or
return stored collections and maps, jointly called containers. It contains
methods for changing certain properties of a container. Because container
properties are immutable, these methods always return a new container
instance. This allows stored container instances to be used safely by
multiple threads. Creating the new container instance is not expensive and
creates only two new objects.
When a container is created with a particular property, all containers
and iterators derived from that container will inherit the property. For
example, if a read-uncommitted Map is created then calls to its subMap(),
values(), entrySet(), and keySet() methods will create read-uncommitted
containers also.
Method names beginning with "configured" create a new container with a
specified
CursorConfig from a given stored container. This allows
configuring a container for read-committed isolation, read-uncommitted
isolation, or any other property supported by CursorConfig .
All operations performed with the resulting container will be performed with
the specified cursor configuration.
|