public EasyRandomParameters collectionSizeRange ( final int minCollectionSize , final int maxCollectionSize ) { if ( minCollectionSize < 0 ) { throw new IllegalArgumentException ( "minCollectionSize must be >= 0" ) ; } if ( minCollectionSize > maxCollectionSize ) { throw new IllegalArgumentException ( format ( "minCollectionSize (%s) must be <= than maxCollectionSize (%s)" , minCollectionSize , maxCollectionSize ) ) ; } setCollectionSizeRange ( new Range <> ( minCollectionSize , maxCollectionSize ) ) ; return this ; }
Set the collection size range .