Class SplitEvent<T>


  • public final class SplitEvent<T>
    extends Object
    • 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)
      • newRemoveObject

        public static <T> SplitEvent<T> newRemoveObject​(T object,
                                                        T replacement)
      • getObject

        public T getObject()
        Returns the associated object.

        Valid when type is REUSE_OBJECT, CHANGE_OBJECT_APPLICABILITY and REMOVE_OBJECT.

        Returns:
        The object.
      • getApplicability

        public Expression getApplicability()
        Returns the applicability to use.

        Valid when type is REUSE_OBJECT, CHANGE_OBJECT_APPLICABILITY and CREATE_OBJECT.

        Returns:
        The applicability.
      • getReplacement

        public T getReplacement()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object