public synchronized void skipTo ( final long newValue ) throws IllegalStateException { if ( newValue < currentValue ) { throw new IllegalStateException ( "Cannot skip to less than the current value (=" + currentValue + "), where newValue=" + newValue ) ; } currentValue = newValue ; }
Skip to the new value .