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