public Revision getNearest ( final int revisionCounter ) { if ( first != null ) { ChronoStorageBlock previous = null , current = first ; while ( current != null && current . getRevisionCounter ( ) <= revisionCounter ) { previous = current ; current = current . getCounterNext ( ) ; } return previous . getRev ( ) ; } return null ; }
Returns the nearest available revision to the specified revision counter .