public enum Immutable extends Enum<Immutable>
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.
Enum Constant and Description |
---|
COPY
A copy is neither changeable by the user of the immutable collection, nor by anyone holding a pointer to the original
collection that is put into the immutable collection.
|
WRAP
A wrapped immutable collection is not changeable by the user of the immutable collection, but can be changed by anyone
holding a pointer to the original collection that is wrapped.
|
Modifier and Type | Method and Description |
---|---|
static Immutable |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Immutable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Immutable COPY
public static final Immutable WRAP
public static Immutable[] values()
for (Immutable c : Immutable.values()) System.out.println(c);
public static Immutable valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2016 Delft University of Technology. All rights reserved.