@ExperimentalApi public class ContentId extends Object implements Comparable
Content instance.| Modifier and Type | Method and Description |
|---|---|
long |
asLong() |
int |
compareTo(Object o) |
static ContentId |
deserialise(String id) |
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isSet() |
static ContentId |
of(ContentType type,
long id) |
String |
serialise() |
String |
toString() |
static ContentId |
valueOf(String id)
Don't use this method - it's just for Jersey QueryParam automatic conversion.
|
public static final ContentId UNSET
public static ContentId deserialise(String id) throws BadRequestException
BadRequestExceptionpublic static ContentId of(ContentType type, long id)
public String serialise()
public long asLong()
public boolean isSet()
public static ContentId valueOf(String id) throws BadRequestException
Use deserialise(String) instead.
BadRequestExceptionpublic int compareTo(Object o)
compareTo in interface ComparableCopyright © 2003–2016 Atlassian. All rights reserved.