org.freecompany.redline.header
Enum PayloadCompressionType

java.lang.Object
  extended by java.lang.Enum<PayloadCompressionType>
      extended by org.freecompany.redline.header.PayloadCompressionType
All Implemented Interfaces:
Serializable, Comparable<PayloadCompressionType>

public enum PayloadCompressionType
extends Enum<PayloadCompressionType>

RPM payload compression tag values

Version:
$Revision:$
Author:
Scott stark (sstark@redhat.com) (C) 2011 Red Hat Inc.

Enum Constant Summary
bzip2
           
gzip
           
none
           
xz
           
 
Method Summary
static PayloadCompressionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PayloadCompressionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

none

public static final PayloadCompressionType none

gzip

public static final PayloadCompressionType gzip

bzip2

public static final PayloadCompressionType bzip2

xz

public static final PayloadCompressionType xz
Method Detail

values

public static PayloadCompressionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PayloadCompressionType c : PayloadCompressionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PayloadCompressionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014. All Rights Reserved.