public enum AvatarSize extends Enum<AvatarSize>
Enum Constant and Description |
---|
WIDTH_144 |
WIDTH_16 |
WIDTH_288 |
WIDTH_48 |
WIDTH_72 |
Modifier and Type | Method and Description |
---|---|
static Integer[] |
allWidths() |
int |
getWidth() |
static Optional<AvatarSize> |
valueOf(int width) |
static AvatarSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AvatarSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AvatarSize WIDTH_16
public static final AvatarSize WIDTH_48
public static final AvatarSize WIDTH_72
public static final AvatarSize WIDTH_144
public static final AvatarSize WIDTH_288
public static AvatarSize[] values()
for (AvatarSize c : AvatarSize.values()) System.out.println(c);
public static AvatarSize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getWidth()
public static Optional<AvatarSize> valueOf(int width)
public static Integer[] allWidths()
Copyright © 2024 Atlassian. All rights reserved.