View Javadoc
1   package org.opentrafficsim.base.immutablecollections;
2   
3   /**
4    * Indicate whether the immutable collection contains a COPY of the collection (neither changeable by the user of the immutable
5    * collection, nor by anyone holding a pointer to the original collection), or a WRAP for the original collection (not
6    * changeable by the user of the immutable collection, but can be changed by anyone holding a pointer to the original collection
7    * that is wrapped).
8    * <p>
9    * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10   * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
11   * </p>
12   * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
13   * initial version Sep 22, 2016 <br>
14   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
15   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
16   * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
17   */
18  public enum Immutable
19  {
20      /**
21       * A copy is neither changeable by the user of the immutable collection, nor by anyone holding a pointer to the original
22       * collection that is put into the immutable collection.
23       */
24      COPY,
25  
26      /**
27       * A wrapped immutable collection is not changeable by the user of the immutable collection, but can be changed by anyone
28       * holding a pointer to the original collection that is wrapped.
29       */
30      WRAP;
31  }