All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.studio.agent.event.BreakpointsEvent Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.studio.agent.event;

import java.util.Collections;
import java.util.Map;

public class BreakpointsEvent implements ProcessEvent {

   private final Map> breakpoints;
   private final String process;
   
   private BreakpointsEvent(Builder builder) {
      this.breakpoints = Collections.unmodifiableMap(builder.breakpoints);
      this.process = builder.process;
   }
   
   @Override
   public String getProcess() {
      return process;
   }
   
   public Map> getBreakpoints() {
      return breakpoints;
   }
   
   public static class Builder {
      
      private Map> breakpoints;
      private String process;
      
      public Builder(String process){
         this.process = process;
      }

      public Builder withBreakpoints(Map> breakpoints) {
         this.breakpoints = breakpoints;
         return this;
      }

      public Builder withProcess(String process) {
         this.process = process;
         return this;
      }
      
      public BreakpointsEvent build() {
         return new BreakpointsEvent(this);
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy