Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

@Retention(CLASS) @Target({FIELD, PARAMETER})

public @interface Size

The length of a CharSequence, or the size of a collection, map or array, must lie between min and max, inclusive. Null is valid; add NotNull to refuse it.

Methods

public abstract int min() default 0The smallest size allowed.
public abstract int max() default 2147483647The largest size allowed.
public abstract String message() default ""The message reported for the field; empty for the default.

Method details

min

public abstract int min() default 0
The smallest size allowed.

max

public abstract int max() default 2147483647
The largest size allowed.

message

public abstract String message() default ""
The message reported for the field; empty for the default.