@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface Group
If you don't provide a group for a field, it is considered to be a part of the "default group", which is always the first group in the serialization order, regardless values of other groups in the interface.
| Modifier and Type | Required Element and Description |
|---|---|
int |
value
The value is used to order groups within the interface.
|
public abstract int value
This field should be named "order", it is "value" to allow concise declaration form
like @Group(1) int getFoo();.
Copyright © 2018. All rights reserved.