public enum CompressionScheme extends Enum<CompressionScheme>
Enum Constant and Description |
---|
NONE |
Modifier and Type | Method and Description |
---|---|
static CompressionScheme |
from(String scheme)
Returns the associated
CompressionScheme object for the provided scheme name (if there is one). |
String |
toString()
Returns a
String representation of this CompressionScheme . |
static CompressionScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionScheme NONE
public static CompressionScheme[] values()
for (CompressionScheme c : CompressionScheme.values()) System.out.println(c);
public static CompressionScheme 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 static CompressionScheme from(String scheme)
CompressionScheme
object for the provided scheme name (if there is one).scheme
- Name for a CompressionScheme
CompressionScheme
for the provided scheme name. If a match is not found then
NONE
is returnedpublic String toString()
String
representation of this CompressionScheme
.toString
in class Enum<CompressionScheme>
String
representation of this CompressionScheme
Copyright © 2018. All rights reserved.