Enum Detector.CompressionMethod
- java.lang.Object
-
- java.lang.Enum<Detector.CompressionMethod>
-
- org.opentrafficsim.road.network.lane.object.sensor.Detector.CompressionMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<Detector.CompressionMethod>
- Enclosing class:
- Detector
public static enum Detector.CompressionMethod extends Enum<Detector.CompressionMethod>
Defines the compression method for stored data.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 3 mei 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Detector.CompressionMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static Detector.CompressionMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Detector.CompressionMethod NONE
No compression.
-
ZIP
public static final Detector.CompressionMethod ZIP
Zip compression.
-
-
Method Detail
-
values
public static Detector.CompressionMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Detector.CompressionMethod c : Detector.CompressionMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Detector.CompressionMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-