ModelSize Class

public final class ModelSize
extends ExpandableStringEnum<ModelSize>

Image model size.

Field Summary

Modifier and Type Field and Description
static final ModelSize EXTRA_LARGE

Static value ExtraLarge for ModelSize.

static final ModelSize LARGE

Static value Large for ModelSize.

static final ModelSize MEDIUM

Static value Medium for ModelSize.

static final ModelSize NONE

Static value None for ModelSize.

static final ModelSize SMALL

Static value Small for ModelSize.

Constructor Summary

Constructor Description
ModelSize()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ModelSize value.

Method Summary

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

Creates or finds a ModelSize from its string representation.

static Collection<ModelSize> values()

Gets known ModelSize values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

EXTRA_LARGE

public static final ModelSize EXTRA_LARGE

Static value ExtraLarge for ModelSize.

LARGE

public static final ModelSize LARGE

Static value Large for ModelSize.

MEDIUM

public static final ModelSize MEDIUM

Static value Medium for ModelSize.

NONE

public static final ModelSize NONE

Static value None for ModelSize.

SMALL

public static final ModelSize SMALL

Static value Small for ModelSize.

Constructor Details

ModelSize

@Deprecated
public ModelSize()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ModelSize value.

Method Details

fromString

public static ModelSize fromString(String name)

Creates or finds a ModelSize from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ModelSize.

values

public static Collection<ModelSize> values()

Gets known ModelSize values.

Returns:

known ModelSize values.

Applies to