private boolean isChangedPosition(CmsClientSitemapEntry entry, String toPath, int position) {

        return (!entry.getSitePath().equals(toPath) || (entry.getPosition() != position));
    }
private boolean isChangedPosition ( CmsClientSitemapEntry entry , String toPath , int position ) { return ( ! entry . getSitePath ( ) . equals ( toPath ) || ( entry . getPosition ( ) != position ) ) ; }
Checks if the given path and position indicate a changed position for the entry.<p>

@param entry the sitemap entry to move
@param toPath the destination path
@param position the new position between its siblings

@return <code>true</code> if this is a position change