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

com.almworks.jira.structure.api.event.JiraChangeEvent Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api.event;

import com.almworks.integers.LongList;
import org.jetbrains.annotations.NotNull;

/**
 * {@code IssueChangeEvent} represents the details of a single issue change.
 *
 * @see IssueListener
 * @see IssueEventBridge
 */
public class JiraChangeEvent {
  @NotNull
  private final JiraChangeType myChangeType;

  public JiraChangeEvent(@NotNull JiraChangeType changeType) {
    if (changeType == null) {
      throw new NullPointerException("changeType cannot be null");
    }
    myChangeType = changeType;
  }

  /**
   * @return the event type
   */
  @NotNull
  public JiraChangeType getChangeType() {
    return myChangeType;
  }

  /**
   * @return sorted list of IDs of the issues affected by this change
   */
  public LongList getAffectedIssuesSorted() {
    return LongList.EMPTY;
  }

  public String toString() {
    return myChangeType.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy