public enum StandardNamingPolicy extends Enum<StandardNamingPolicy> implements NamingPolicy
NamingPolicy.HashPrefixed| Enum Constant and Description |
|---|
PLAIN
Plain simple names.
|
SHA1
Add SHA1 prefixes to names.
|
SHA256
Add SHA256 prefixes to names.
|
| Modifier and Type | Method and Description |
|---|---|
String |
name(String source,
Path content)
Name for source with its content.
|
static StandardNamingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardNamingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardNamingPolicy PLAIN
public static final StandardNamingPolicy SHA1
public static final StandardNamingPolicy SHA256
public static StandardNamingPolicy[] values()
for (StandardNamingPolicy c : StandardNamingPolicy.values()) System.out.println(c);
public static StandardNamingPolicy 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 name(String source, Path content) throws IOException
NamingPolicyname in interface NamingPolicysource - RPM filecontent - RPM file contentIOException - On errorCopyright © 2019–2020 jcabi.com. All rights reserved.