com.atlassian.jira.avatar
Enum Avatar.Type
java.lang.Object
java.lang.Enum<Avatar.Type>
com.atlassian.jira.avatar.Avatar.Type
- All Implemented Interfaces:
- Serializable, Comparable<Avatar.Type>
- Enclosing interface:
- Avatar
public static enum Avatar.Type
- extends Enum<Avatar.Type>
An indicator of the owner type of the avatar. E.g. project, user, group, role etc.
PROJECT
public static final Avatar.Type PROJECT
USER
public static final Avatar.Type USER
values
public static Avatar.Type[] 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 (Avatar.Type c : Avatar.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Avatar.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getName
public String getName()
- The canonical String representation of the type.
- Returns:
- the name.
getByName
public static Avatar.Type getByName(String name)
Copyright © 2002-2012 Atlassian. All Rights Reserved.