Package com.iizix.urn.user
Enum UserProfileImageURNType
- java.lang.Object
- java.lang.Enum<UserProfileImageURNType>
- com.iizix.urn.user.UserProfileImageURNType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UserProfileImageURNType>
public enum UserProfileImageURNType extends java.lang.Enum<UserProfileImageURNType>
Possible type values for the{@link UserProfileImageURN}
.- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description CroppedUploaded
The cropped uploaded profile image, the highest resolution.Large
The DETAIL for file name for a large profile image (normally a large PNG, cropped and reduced perhaps: max size about 500x500).Thumbnail
The DETAIL for file name for thumbnail profile image (normally a PNG of about 150x150).Uploaded
The uploaded profile image, the highest resolution.
Field Summary
Fields Modifier and Type Field Description java.lang.String
detail
The DETAIL string for the User Details.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserProfileImageURNType
fromString(java.lang.String type)
Gets the URN Profile User Image type from a string, case insensitive, the match with "enum" values in this class must match precisely.static UserProfileImageURNType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UserProfileImageURNType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
Uploaded
public static final UserProfileImageURNType Uploaded
The uploaded profile image, the highest resolution.
CroppedUploaded
public static final UserProfileImageURNType CroppedUploaded
The cropped uploaded profile image, the highest resolution. The image might be circular.
Large
public static final UserProfileImageURNType Large
The DETAIL for file name for a large profile image (normally a large PNG, cropped and reduced perhaps: max size about 500x500). This detail is NOT stored in the server's database table for details.
Thumbnail
public static final UserProfileImageURNType Thumbnail
The DETAIL for file name for thumbnail profile image (normally a PNG of about 150x150).
Method Detail
values
public static UserProfileImageURNType[] 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 (UserProfileImageURNType c : UserProfileImageURNType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static UserProfileImageURNType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
fromString
public static UserProfileImageURNType fromString(java.lang.String type)
Gets the URN Profile User Image type from a string, case insensitive, the match with "enum" values in this class must match precisely.- Parameters:
type
- The URN Profile User String type.- Returns:
- The UserProfileStringURNQuery instance, or
null
if not found.