Partager via


LogSizeUnit Class

public final class LogSizeUnit
extends ExpandableStringEnum<LogSizeUnit>

The units that the limit is expressed in.

Field Summary

Modifier and Type Field and Description
static final LogSizeUnit GIGABYTES

Static value Gigabytes for LogSizeUnit.

static final LogSizeUnit MEGABYTES

Static value Megabytes for LogSizeUnit.

static final LogSizeUnit PERCENT

Static value Percent for LogSizeUnit.

static final LogSizeUnit PETABYTES

Static value Petabytes for LogSizeUnit.

static final LogSizeUnit TERABYTES

Static value Terabytes for LogSizeUnit.

Constructor Summary

Constructor Description
LogSizeUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LogSizeUnit value.

Method Summary

Modifier and Type Method and Description
static LogSizeUnit fromString(String name)

Creates or finds a LogSizeUnit from its string representation.

static Collection<LogSizeUnit> values()

Gets known LogSizeUnit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GIGABYTES

public static final LogSizeUnit GIGABYTES

Static value Gigabytes for LogSizeUnit.

MEGABYTES

public static final LogSizeUnit MEGABYTES

Static value Megabytes for LogSizeUnit.

PERCENT

public static final LogSizeUnit PERCENT

Static value Percent for LogSizeUnit.

PETABYTES

public static final LogSizeUnit PETABYTES

Static value Petabytes for LogSizeUnit.

TERABYTES

public static final LogSizeUnit TERABYTES

Static value Terabytes for LogSizeUnit.

Constructor Details

LogSizeUnit

@Deprecated
public LogSizeUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LogSizeUnit value.

Method Details

fromString

public static LogSizeUnit fromString(String name)

Creates or finds a LogSizeUnit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LogSizeUnit.

values

public static Collection values()

Gets known LogSizeUnit values.

Returns:

known LogSizeUnit values.

Applies to