Class ReleaseVariableReplacedEvent
- java.lang.Object
-
- com.xebialabs.xlrelease.domain.events.ReleaseVariableReplacedEvent
-
- All Implemented Interfaces:
ReleaseVariableEvent
,VariableEvent
,XLReleaseEvent
,java.io.Serializable
,scala.Equals
,scala.Product
public class ReleaseVariableReplacedEvent extends java.lang.Object implements ReleaseVariableEvent, scala.Product, java.io.Serializable
Event published when a variable has been replaced by another variable or a value. The first case is effectively a rename of a variable, and the second is effectively a delete of variable's usages. If a variable is being deleted then this event will precede theReleaseVariableDeletedEvent
.param: variable a copy of the original variable. param: replacement the replacement of the variable: it contains either a new variable name or a value with which it was replaced.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReleaseVariableReplacedEvent(Variable variable, VariableOrValue replacement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReleaseVariableReplacedEvent
apply(Variable variable, VariableOrValue replacement)
boolean
canEqual(java.lang.Object x$1)
ReleaseVariableReplacedEvent
copy(Variable variable, VariableOrValue replacement)
Variable
copy$default$1()
VariableOrValue
copy$default$2()
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
VariableOrValue
replacement()
java.lang.String
toString()
static scala.Option<scala.Tuple2<Variable,VariableOrValue>>
unapply(ReleaseVariableReplacedEvent x$0)
java.lang.String
username()
void
username_$eq(java.lang.String x$1)
Variable
variable()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.xebialabs.xlrelease.domain.events.XLReleaseEvent
timeMs, timestamp
-
-
-
-
Constructor Detail
-
ReleaseVariableReplacedEvent
public ReleaseVariableReplacedEvent(Variable variable, VariableOrValue replacement)
-
-
Method Detail
-
apply
public static ReleaseVariableReplacedEvent apply(Variable variable, VariableOrValue replacement)
-
unapply
public static scala.Option<scala.Tuple2<Variable,VariableOrValue>> unapply(ReleaseVariableReplacedEvent x$0)
-
username
public java.lang.String username()
- Specified by:
username
in interfaceXLReleaseEvent
-
username_$eq
public void username_$eq(java.lang.String x$1)
- Specified by:
username_$eq
in interfaceXLReleaseEvent
-
variable
public Variable variable()
-
replacement
public VariableOrValue replacement()
-
copy
public ReleaseVariableReplacedEvent copy(Variable variable, VariableOrValue replacement)
-
copy$default$1
public Variable copy$default$1()
-
copy$default$2
public VariableOrValue copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-