public void _whereEndsWith ( String fieldName , Object value , boolean exact ) { WhereParams whereParams = new WhereParams ( ) ; whereParams . setFieldName ( fieldName ) ; whereParams . setValue ( value ) ; whereParams . setAllowWildcards ( true ) ; Object transformToEqualValue = transformValue ( whereParams ) ; List < QueryToken > tokens = getCurrentWhereTokens ( ) ; appendOperatorIfNeeded ( tokens ) ; whereParams . setFieldName ( ensureValidFieldName ( whereParams . getFieldName ( ) , whereParams . isNestedPath ( ) ) ) ; negateIfNeeded ( tokens , whereParams . getFieldName ( ) ) ; WhereToken whereToken = WhereToken . create ( WhereOperator . ENDS_WITH , whereParams . getFieldName ( ) , addQueryParameter ( transformToEqualValue ) , new WhereToken . WhereOptions ( exact ) ) ; tokens . add ( whereToken ) ; }
Matches fields which ends with the specified value .