public Expression < Calendar > in ( Calendar [ ] value ) { String valueString = "" ; Boolean firstCalendar = true ; for ( Calendar v : value ) { if ( firstCalendar ) { valueString = valueString . concat ( "('" ) . concat ( getCalendarAsString ( v ) ) . concat ( "'" ) ; firstCalendar = false ; } else { valueString = valueString . concat ( ", '" ) . concat ( getCalendarAsString ( v ) ) . concat ( "'" ) ; } } valueString = valueString . concat ( ")" ) ; return new Expression < Calendar > ( this , Operation . in , valueString ) ; }
Method to construct the in expression for calendar