updated paging predicate javadoc related to anchor,fixes #3241
added javadoc example
Merge pull request #3378 from eminn/pagingpredicatedocs

updated paging predicate javadoc related to anchor,fixes #3241