Class SyncProcessStateTransitionValidator


  • public class SyncProcessStateTransitionValidator
    extends Object
    This class encapsulates the state change rules for the SyncProcessManager.
    Author:
    Daniel Bernstein
    • Constructor Detail

      • SyncProcessStateTransitionValidator

        public SyncProcessStateTransitionValidator()
    • Method Detail

      • validate

        public boolean validate​(SyncProcessState from,
                                SyncProcessState to)
        Parameters:
        currentState -
        newState -
        Returns:
        true if the state transition is valid