public enum ICalVersion extends Enum<ICalVersion>
Enum Constant and Description |
---|
V1_0
Represents the original vCalendar specification.
|
V2_0
Represents the latest iCalendar specification.
|
V2_0_DEPRECATED
Represents an older, deprecated version of the iCalendar specification
(very similar to
V2_0 ). |
Modifier and Type | Method and Description |
---|---|
static ICalVersion |
get(String version)
Gets a
ICalVersion instance based on the given version number. |
String |
getVersion()
Gets the text representation of this version.
|
String |
toString() |
static ICalVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ICalVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ICalVersion V1_0
public static final ICalVersion V2_0_DEPRECATED
V2_0
).public static final ICalVersion V2_0
public static ICalVersion[] values()
for (ICalVersion c : ICalVersion.values()) System.out.println(c);
public static ICalVersion 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 nullpublic String getVersion()
public static ICalVersion get(String version)
ICalVersion
instance based on the given version number.version
- the version number (e.g. "2.0")public String toString()
toString
in class Enum<ICalVersion>
Copyright © 2013-2015 Michael Angstadt. All Rights Reserved.