Package org.apache.maven.cli.transfer
Enum AbstractMavenTransferListener.FileSizeFormat.ScaleUnit
- java.lang.Object
-
- java.lang.Enum<AbstractMavenTransferListener.FileSizeFormat.ScaleUnit>
-
- org.apache.maven.cli.transfer.AbstractMavenTransferListener.FileSizeFormat.ScaleUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractMavenTransferListener.FileSizeFormat.ScaleUnit>
- Enclosing class:
- AbstractMavenTransferListener.FileSizeFormat
static enum AbstractMavenTransferListener.FileSizeFormat.ScaleUnit extends java.lang.Enum<AbstractMavenTransferListener.FileSizeFormat.ScaleUnit>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ScaleUnit()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
bytes()
static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit
getScaleUnit(long size)
abstract java.lang.String
symbol()
static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final AbstractMavenTransferListener.FileSizeFormat.ScaleUnit BYTE
-
KILOBYTE
public static final AbstractMavenTransferListener.FileSizeFormat.ScaleUnit KILOBYTE
-
MEGABYTE
public static final AbstractMavenTransferListener.FileSizeFormat.ScaleUnit MEGABYTE
-
GIGABYTE
public static final AbstractMavenTransferListener.FileSizeFormat.ScaleUnit GIGABYTE
-
-
Method Detail
-
values
public static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit[] 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 (AbstractMavenTransferListener.FileSizeFormat.ScaleUnit c : AbstractMavenTransferListener.FileSizeFormat.ScaleUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
bytes
public abstract long bytes()
-
symbol
public abstract java.lang.String symbol()
-
getScaleUnit
public static AbstractMavenTransferListener.FileSizeFormat.ScaleUnit getScaleUnit(long size)
-
-