Skip navigation links

Package org.opentrafficsim.base.immutablecollections

Contains a set of immutable collection interfaces and wrapper implementations.

See: Description

Package org.opentrafficsim.base.immutablecollections Description

Contains a set of immutable collection interfaces and wrapper implementations. Two versions of immutable collections are implemented:
  1. A version, identified by Immutable.COPY, where the immutable collection can neither be changed by any object "using" the ImmutableCollection nor anymore by objects that have a pointer to the collection, as an internal (shallow) copy is made of the collection. This is the default implementation.
  2. A version, identified by Immutable.WRAP, where the immutable collection can not be changed by any object "using" the ImmutableCollection, but it can still be changed by any object that has a pointer to the original collection that is "wrapped". Instead of a (shallow) copy of the collection, a pointer to the collection is stored.

Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version May 7, 2016
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
Skip navigation links

Copyright © 2014–2016 Delft University of Technology. All rights reserved.