Package cdc.applic.factorization.events
Class SplitEvent<T>
- java.lang.Object
-
- cdc.applic.factorization.events.SplitEvent<T>
-
public final class SplitEvent<T> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSplitEvent.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)ExpressiongetApplicability()Returns the applicability to use.TgetObject()Returns the associated object.TgetReplacement()Returns the replacement object.SplitEvent.TypegetType()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)StringtoString()
-
-
-
Method Detail
-
newKeepObject
public static <T> SplitEvent<T> newKeepObject(T object)
-
newReduceObjectApplicability
public static <T> SplitEvent<T> newReduceObjectApplicability(T object, Expression applicability)
-
newReuseObject
public static <T> SplitEvent<T> newReuseObject(T object, Expression applicability)
-
newCreateObject
public static <T> SplitEvent<T> newCreateObject(Expression applicability)
-
newRemoveObject
public static <T> SplitEvent<T> newRemoveObject(T object, T replacement)
-
getType
public SplitEvent.Type getType()
- Returns:
- The event type.
-
getObject
public T 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
public Expression 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
public T getReplacement()
Returns the replacement object.Valid when type is
SplitEvent.Type.REMOVE_OBJECT.- Returns:
- the replacement object.
-
-