public static enum RestComment.Field extends Enum<RestComment.Field>
All of the fields that comments can have.
| Enum Constant and Description |
|---|
ACTIVITY_ID
the json field for activityId.
|
CREATED_AT
the json field for createdAt.
|
ID |
IDENTITY_ID
the json field for userId.
|
POSTED_TIME
the json field for postedTime.
|
POSTER_IDENTITY
the identity who comment the activity
|
TEXT
the json field for streamTitle.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
emit the field as a json element.
|
static RestComment.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestComment.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestComment.Field ID
public static final RestComment.Field IDENTITY_ID
public static final RestComment.Field ACTIVITY_ID
public static final RestComment.Field TEXT
public static final RestComment.Field POSTED_TIME
public static final RestComment.Field CREATED_AT
public static final RestComment.Field POSTER_IDENTITY
public static RestComment.Field[] values()
for (RestComment.Field c : RestComment.Field.values()) System.out.println(c);
public static RestComment.Field 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 String toString()
toString in class Enum<RestComment.Field>Copyright © 2011–2015 eXo Platform SAS. All rights reserved.