@ExperimentalApi @ParametersAreNonnullByDefault public class AvatarFormatParams extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
RequestedAvatarFormat |
getRequestedFormat()
Return the requested (preferred) format to use when reading the avatar data
|
int |
hashCode() |
boolean |
isStrict()
Should this request be treated as strict.
|
static AvatarFormatParams |
of(RequestedAvatarFormat requestedFormat)
Create a
AvatarFormatParams with the requested format, and not strict |
AvatarFormatParams |
strict()
Create a new
AvatarFormatParams from the current instance, but with strictness enabled |
public static AvatarFormatParams of(RequestedAvatarFormat requestedFormat)
AvatarFormatParams
with the requested format, and not strictrequestedFormat
- The requested (preferred) format of the avatar image. Can not be nullnew AvatarFormatParams(requestedFormat, false
public AvatarFormatParams strict()
AvatarFormatParams
from the current instance, but with strictness enabledpublic RequestedAvatarFormat getRequestedFormat()
public boolean isStrict()
RequestedAvatarFormat.isSupportedBy(Avatar)
,
then should fail. Otherwise treat the request as a best-effort attempt, and fall back to using the actual avatars
content type, where the actual content type used can be determined by checking RequestedAvatarFormat.getResponseContentType(Avatar)
.Copyright © 2002-2015 Atlassian. All Rights Reserved.