Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.uberfire.workbench.events;
 
 import java.util.Map;
 
 import  org.uberfire.backend.vfs.Path;
import static org.uberfire.commons.validation.PortablePreconditions.*;

An Event indicating a various changes to various Resources
public class ResourceBatchChangesEvent {
    private SessionInfo sessionInfo;
    private Map<Path, Collection<ResourceChange>> batch = new HashMap<Path, Collection<ResourceChange>>();
    public ResourceBatchChangesEvent() {
        //Empty constructor for Errai marshalling
    }
    public ResourceBatchChangesEventfinal Map<Path, Collection<ResourceChange>> batch,
                                      final SessionInfo sessionInfo ) {
        checkNotNull( "batch"batch );
        this..putAll( batch );
        this. = checkNotNull"sessionInfo"sessionInfo );
    }
    public Map<Path, Collection<ResourceChange>> getBatch() {
        return this.;
    }
    public boolean containPathfinal Path path ) {
        return .containsKey( path );
    }
    public Collection<Path> getAffectedPaths() {
        return .keySet();
    }
    public Collection<ResourceChangegetChangesfinal Path path ) {
        return .get( path );
    }
    public SessionInfo getSessionInfo() {
        return ;
    }
New to GrepCode? Check out our FAQ X