Identifies examples for POJOs.
Can be used in the following locations:
- Static method that returns an example of the POJO.
- Static field that contains an example of the POJO.
- On a class.
// On a static method.
public class A {
@Example
public static A example() {
return new A().foo("bar").baz(123);
}
...
}
// On a static field.
public class B {
@Example
public static B EXAMPLE = new B().foo("bar").baz(123);
...
}
// On a class.
@Example("{foo:'bar',baz:123}")
public class C {...}