Code example for Multiset

Methods: add

0
        } 
    } 
 
    public void flushLastCommand() { 
        if(currentCommand != null) {
            commandsInTime.add(currentCommand);
            currentCommand = null;
        } 
    } 
 
    @VisibleForTesting 
    protected SqlCommand getCurrentCommand() { 
        return currentCommand;
    } 
 
    public Multiset<SqlCommand> getCommandsInTime() {
        flushLastCommand(); 
        return commandsInTime;
    } 
}