Package cdc.applic.factorization.events
Class SplitEvent<T>
java.lang.Object
cdc.applic.factorization.events.SplitEvent<T>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the applicability to use.Returns the associated object.Returns the replacement object.getType()inthashCode()static <T> SplitEvent<T>newCreateObject(Expression applicability) static <T> SplitEvent<T>newKeepObject(T object) static <T> SplitEvent<T>newReduceObjectApplicability(T object, Expression applicability) static <T> SplitEvent<T>newRemoveObject(T object, T replacement) static <T> SplitEvent<T>newReuseObject(T object, Expression applicability) toString()
-
Method Details
-
newKeepObject
-
newReduceObjectApplicability
-
newReuseObject
-
newCreateObject
-
newRemoveObject
-
getType
- Returns:
- The event type.
-
getObject
Returns the associated object.Valid when type is
SplitEvent.Type.REUSE_OBJECT,SplitEvent.Type.REDUCE_OBJECT_APPLICABILITYandSplitEvent.Type.REMOVE_OBJECT.- Returns:
- The object.
-
getApplicability
Returns the applicability to use.Valid when type is
SplitEvent.Type.REUSE_OBJECT,SplitEvent.Type.REDUCE_OBJECT_APPLICABILITYandSplitEvent.Type.CREATE_OBJECT.- Returns:
- The applicability.
-
getReplacement
Returns the replacement object.Valid when type is
SplitEvent.Type.REMOVE_OBJECT.- Returns:
- the replacement object.
-
hashCode
public int hashCode() -
equals
-
toString
-