currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(), currentOptions = currentMwd.getOptions(); mwdToSend = new MatchWindowData( currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(),
currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(), currentOptions = currentMwd.getOptions(); mwdToSend = new MatchWindowData( currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(),
currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(), currentOptions = currentMwd.getOptions(); mwdToSend = new MatchWindowData( currentMwd.getUserInputs(), currentMwd.getAppOutput(), currentMwd.getTag(),
/** * Clones the given {@link MatchWindowDataWithScreenshot} instance, while * setting the primary to the required value. * @param currentMwdws The instance to clone. * @param updatePrimary The primary value to set. * @return A new instance with the updated primary value. */ private static MatchWindowDataWithScreenshot cloneTimedMWDWSWithPrimary( MatchWindowDataWithScreenshot currentMwdws, boolean updatePrimary) { MatchWindowData currentMwd = currentMwdws.getMatchWindowData(); TimedAppOutput currentAppOutput = (TimedAppOutput) currentMwdws.getMatchWindowData().getAppOutput(); TimedAppOutput updatedAppOutput = new TimedAppOutput( currentAppOutput.getTitle(), currentAppOutput.getScreenshot64(), currentAppOutput.getElapsed(), updatePrimary); MatchWindowData updatedMwd = new MatchWindowData( currentMwd.getUserInputs(), updatedAppOutput, currentMwd.getTag(), currentMwd.getIgnoreMismatch(), currentMwd.getOptions()); return new MatchWindowDataWithScreenshot(updatedMwd, currentMwdws.getScreenshot()); }
/** * Clones the given {@link MatchWindowDataWithScreenshot} instance, while * setting the primary to the required value. * @param currentMwdws The instance to clone. * @param updatePrimary The primary value to set. * @return A new instance with the updated primary value. */ private static MatchWindowDataWithScreenshot cloneTimedMWDWSWithPrimary( MatchWindowDataWithScreenshot currentMwdws, boolean updatePrimary) { MatchWindowData currentMwd = currentMwdws.getMatchWindowData(); TimedAppOutput currentAppOutput = (TimedAppOutput) currentMwdws.getMatchWindowData().getAppOutput(); TimedAppOutput updatedAppOutput = new TimedAppOutput( currentAppOutput.getTitle(), currentAppOutput.getScreenshot64(), currentAppOutput.getElapsed(), updatePrimary); MatchWindowData updatedMwd = new MatchWindowData( currentMwd.getUserInputs(), updatedAppOutput, currentMwd.getTag(), currentMwd.getIgnoreMismatch(), currentMwd.getOptions()); return new MatchWindowDataWithScreenshot(updatedMwd, currentMwdws.getScreenshot()); }
/** * Clones the given {@link MatchWindowDataWithScreenshot} instance, while * setting the primary to the required value. * @param currentMwdws The instance to clone. * @param updatePrimary The primary value to set. * @return A new instance with the updated primary value. */ private static MatchWindowDataWithScreenshot cloneTimedMWDWSWithPrimary( MatchWindowDataWithScreenshot currentMwdws, boolean updatePrimary) { MatchWindowData currentMwd = currentMwdws.getMatchWindowData(); TimedAppOutput currentAppOutput = (TimedAppOutput) currentMwdws.getMatchWindowData().getAppOutput(); TimedAppOutput updatedAppOutput = new TimedAppOutput( currentAppOutput.getTitle(), currentAppOutput.getScreenshot64(), currentAppOutput.getElapsed(), updatePrimary); MatchWindowData updatedMwd = new MatchWindowData( currentMwd.getUserInputs(), updatedAppOutput, currentMwd.getTag(), currentMwd.getIgnoreMismatch(), currentMwd.getOptions()); return new MatchWindowDataWithScreenshot(updatedMwd, currentMwdws.getScreenshot()); }