borrowing an stateevent concode_field_sep int index concode_elem_sep int size concode_elem_sep StateEventFactory eventFactory concode_elem_sep StateEvent stateEventList concode_elem_sep long id concode_field_sep int getSize concode_elem_sep void returnEvents concode_elem_sep int getBufferedEventsSize
StateEvent function ( ) { if ( index > 0 ) { StateEvent loc0 = stateEventList ; stateEventList = stateEventList . getNext ( ) ; loc0 . setNext ( null ) ; index -- ; loc0 . setId ( ++ id ) ; return loc0 ; } else { StateEvent loc0 = eventFactory . newInstance ( ) ; loc0 . setId ( ++ id ) ; return loc0 ; } }