* Indicates whether the event matches the event pattern. *
*/ private Boolean result; /** ** Indicates whether the event matches the event pattern. *
* * @param result * Indicates whether the event matches the event pattern. */ public void setResult(Boolean result) { this.result = result; } /** ** Indicates whether the event matches the event pattern. *
* * @return Indicates whether the event matches the event pattern. */ public Boolean getResult() { return this.result; } /** ** Indicates whether the event matches the event pattern. *
* * @param result * Indicates whether the event matches the event pattern. * @return Returns a reference to this object so that method calls can be chained together. */ public TestEventPatternResult withResult(Boolean result) { setResult(result); return this; } /** ** Indicates whether the event matches the event pattern. *
* * @return Indicates whether the event matches the event pattern. */ public Boolean isResult() { return this.result; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResult() != null) sb.append("Result: ").append(getResult()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TestEventPatternResult == false) return false; TestEventPatternResult other = (TestEventPatternResult) obj; if (other.getResult() == null ^ this.getResult() == null) return false; if (other.getResult() != null && other.getResult().equals(this.getResult()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResult() == null) ? 0 : getResult().hashCode()); return hashCode; } @Override public TestEventPatternResult clone() { try { return (TestEventPatternResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }