程序包 org.coodex.mock
注释类型 Mock.Dimension
- 封闭类:
- Mock
用来定义多维(含一维)集合、数组的维度模拟信息,确定各维度的数组大小
-
可选元素概要
可选元素 -
字段概要
字段修饰符和类型字段说明static final intstatic final intstatic final booleanstatic final int
-
字段详细资料
-
元素详细资料
-
size
int size- 返回:
- >0 表示固定值,否则按照random(min, max),默认0
- 默认值:
- 0
-
min
int min- 返回:
- size <=0 时,模拟此维度大小的下界
- 默认值:
- 1
-
max
int max- 返回:
- size <=0 时,模拟此维度大小的上界
- 默认值:
- 5
-
nullProbability
double nullProbability- 返回:
- 为空的几率,默认不为空
- 默认值:
- -1.0
-
ordered
boolean ordered- 返回:
- 仅对Collection Set Map有效,用以说明是否需要保证稳定性,默认为真
- 默认值:
- true
-