private static ICondition [ ] toConditions ( JsonArray array ) { return IntStream . range ( 0 , array . size ( ) ) . mapToObj ( i -> asCondition ( array . getJsonObject ( i ) ) ) . collect ( toList ( ) ) . toArray ( new ICondition [ 0 ] ) ; }
Returns the contents of the given JSON array as an array of conditions .