question: static void decodeTo ( String eventKey , Collection < String > eventIds ) { int startIdx = 0 ; String prevId = null ; for ( int i = 0 ; i < eventKey . length ( ) ; i ++ ) { char ch = eventKey . charAt ( i ) ; if ( ch == DELIM_REGULAR || ch == DELIM_SHARED_PREFIX ) { String eventId = checkValid ( combine ( prevId , eventKey . substring ( startIdx , i ) ) ) ; eventIds . add ( eventId ) ; prevId = ( ch == DELIM_REGULAR ) ? null : eventId ; startIdx = i + 1 ; } } eventIds . add ( checkValid ( combine ( prevId , eventKey . substring ( startIdx , eventKey . length ( ) ) ) ) ) ; }
target:  Split a Databus event key into EventStore event IDs. 