public final class Fields extends Object
Modifier and Type | Method and Description |
---|---|
static Field |
ignored()
A field that is ignored.
|
static Field |
ignored(boolean optional)
A field that is ignored and may be optional.
|
static Field |
item()
The item ID field.
|
static Field |
likeCount()
A plus count field.
|
static List<Field> |
list(Field... fields)
Create a list of fields.
|
static Field |
rating()
The rating field.
|
static Field |
timestamp()
A required timestamp field.
|
static Field |
timestamp(boolean required)
A timestamp field.
|
static Field |
user()
The user ID field.
|
public static Field user()
public static Field item()
public static Field timestamp()
public static Field rating()
public static Field ignored()
public static Field ignored(boolean optional)
optional
- true
if the field is optional (it may or may not appear).public static List<Field> list(Field... fields)
fields
- The fields to put in the list.public static Field timestamp(boolean required)
required
- true
if the timestamp is required, false
if it is optional.public static Field likeCount()