public final @ NotNull S hasSize ( int expected ) { isNotNull ( ) ; int size = actualGroupSize ( ) ; if ( size == expected ) { return myself ( ) ; } failIfCustomMessageIsSet ( ) ; throw failure ( format ( "expected size:<%s> but was:<%s> for <%s>" , expected , size , actual ) ) ; }
Verifies that the number of values in the actual group is equal to the given one .