MaxSizeUnit Class

public final class MaxSizeUnit
extends ExpandableStringEnum<MaxSizeUnit>

The units that the limit is expressed in.

Field Summary

Modifier and Type Field and Description
static final MaxSizeUnit GIGABYTES

Static value Gigabytes for MaxSizeUnit.

static final MaxSizeUnit MEGABYTES

Static value Megabytes for MaxSizeUnit.

static final MaxSizeUnit PETABYTES

Static value Petabytes for MaxSizeUnit.

static final MaxSizeUnit TERABYTES

Static value Terabytes for MaxSizeUnit.

Constructor Summary

Constructor Description
MaxSizeUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MaxSizeUnit value.

Method Summary

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

Creates or finds a MaxSizeUnit from its string representation.

static Collection<MaxSizeUnit> values()

Gets known MaxSizeUnit values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GIGABYTES

public static final MaxSizeUnit GIGABYTES

Static value Gigabytes for MaxSizeUnit.

MEGABYTES

public static final MaxSizeUnit MEGABYTES

Static value Megabytes for MaxSizeUnit.

PETABYTES

public static final MaxSizeUnit PETABYTES

Static value Petabytes for MaxSizeUnit.

TERABYTES

public static final MaxSizeUnit TERABYTES

Static value Terabytes for MaxSizeUnit.

Constructor Details

MaxSizeUnit

@Deprecated
public MaxSizeUnit()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MaxSizeUnit value.

Method Details

fromString

public static MaxSizeUnit fromString(String name)

Creates or finds a MaxSizeUnit from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MaxSizeUnit.

values

public static Collection values()

Gets known MaxSizeUnit values.

Returns:

known MaxSizeUnit values.

Applies to