JournalSegment < E > getNextSegment ( long index ) { Map . Entry < Long , JournalSegment < E > > nextSegment = segments . higherEntry ( index ) ; return nextSegment != null ? nextSegment . getValue ( ) : null ; }
Returns the segment following the segment with the given ID .