public Expression < Boolean > in ( Boolean [ ] value ) { String listBooleanString = "" ; Boolean firstNumber = true ; for ( Boolean v : value ) { if ( firstNumber ) { listBooleanString = listBooleanString . concat ( "(" ) . concat ( v . toString ( ) ) ; firstNumber = false ; } else { listBooleanString = listBooleanString . concat ( ", " ) . concat ( v . toString ( ) ) ; } } listBooleanString = listBooleanString . concat ( ")" ) ; return new Expression < Boolean > ( this , Operation . in , listBooleanString ) ; }
Method to construct the in expression for boolean