@Target(value={ANNOTATION_TYPE,FIELD,METHOD,PARAMETER}) @Retention(value=RUNTIME) @Documented public @interface JsonPropertyLength
JsonPropertyLength
annotation is used to provide length
information for the annotated string, byte[]
, array, or
collection property.Modifier and Type | Optional Element and Description |
---|---|
int |
key
Defines the length for the annotated property contained keys.
|
int |
keyMax
Defines the maximum length for the annotated property contained keys.
|
int |
keyMin
Defines the minimum length for the annotated property contained keys.
|
int |
value
Defines the length for the annotated property or its contained values.
|
int |
valueMax
Defines the maximum length for the annotated property or its contained
values.
|
int |
valueMin
Defines the minimum length for the annotated property or its contained
values.
|
public abstract int value
public abstract int valueMin
Note: Ignored if value()
specified.
public abstract int valueMax
Note: Ignored if value()
specified.
public abstract int key
public abstract int keyMin
Note: Ignored if key()
specified.
public abstract int keyMax
Note: Ignored if key()
specified.
Copyright (C) 2015-2017 The Helenus Driver Project Authors.