public enum UpdateOption extends Enum<UpdateOption> implements PolicyOption
Modifier and Type | Method and Description |
---|---|
String |
getId() |
PolicyOption |
ofId(String id) |
String |
toString() |
static UpdateOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateOption ALWAYS
public static final UpdateOption NEVER
public static final UpdateOption DAILY
public static final UpdateOption HOURLY
public static final UpdateOption ONCE
public static UpdateOption[] values()
for (UpdateOption c : UpdateOption.values()) System.out.println(c);
public static UpdateOption 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 getId()
getId
in interface PolicyOption
public PolicyOption ofId(String id)
ofId
in interface PolicyOption
public String toString()
toString
in class Enum<UpdateOption>
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.