Enum Class ComposedTypeEnum
- All Implemented Interfaces:
Serializable
,Comparable<ComposedTypeEnum>
,java.lang.constant.Constable
ComposedTypeEnum contains the type of a composed Property.
Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionJava Array.General Java Collection.Immutable Collection.Immutable Map.General Java Map.Not composed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isArray()
boolean
boolean
boolean
boolean
boolean
isMap()
static ComposedTypeEnum
Returns the enum constant of this class with the specified name.static ComposedTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Not composed. -
ARRAY
Java Array. -
COLLECTION
General Java Collection. -
IMMUTABLECOLLECTION
Immutable Collection. -
MAP
General Java Map. -
IMMUTABLEMAP
Immutable Map.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isComposed
public boolean isComposed()- Returns:
- whether the enum is a collection or not
-
isArray
public boolean isArray()- Returns:
- whether the enum is a Java array
-
isCollection
public boolean isCollection()- Returns:
- whether the enum is a Java Collection
-
isMap
public boolean isMap()- Returns:
- whether the enum is a Java Map
-
isImmutableCollection
public boolean isImmutableCollection()- Returns:
- whether the enum is an ImmutableCollection
-
isImmutableMap
public boolean isImmutableMap()- Returns:
- whether the enum is an ImmutableMap
-