@Test public void isOverlappingInputMatchingBaseDelta() { WorkDetails details1 = _builder.setSnapshotId(new SnapshotId("t1")).build(); WorkDetails details2 = _builder .setSnapshotId(new SnapshotId("t2")) .setReferenceSnapshotId(new SnapshotId("t1")) .setIsDifferential(true) .build(); assertTrue(details1.isOverlappingInput(details2)); }
public boolean isOverlappingInput(WorkDetails o) { return _snapshotId.equals(o._snapshotId) || _snapshotId.equals(o._referenceSnapshotId) || _isDifferential && (_referenceSnapshotId.equals(o._snapshotId) || _referenceSnapshotId.equals(o._referenceSnapshotId)); }
WorkDetails { public boolean isOverlappingInput(WorkDetails o) { return _snapshotId.equals(o._snapshotId) || _snapshotId.equals(o._referenceSnapshotId) || _isDifferential && (_referenceSnapshotId.equals(o._snapshotId) || _referenceSnapshotId.equals(o._referenceSnapshotId)); } }
WorkDetails { public boolean isOverlappingInput(WorkDetails o) { return _snapshotId.equals(o._snapshotId) || _snapshotId.equals(o._referenceSnapshotId) || _isDifferential && (_referenceSnapshotId.equals(o._snapshotId) || _referenceSnapshotId.equals(o._referenceSnapshotId)); } WorkDetails(
      NetworkId networkId,
      SnapshotId snapshotId,
      boolean isDifferential,
      WorkType workType,
      @Nullable SnapshotId referenceSnapshotId,
      @Nullable AnalysisId analysisId,
      @Nullable QuestionId questionId); }
WorkDetails { public boolean isOverlappingInput(WorkDetails o) { return _snapshotId.equals(o._snapshotId) || _snapshotId.equals(o._referenceSnapshotId) || _isDifferential && (_referenceSnapshotId.equals(o._snapshotId) || _referenceSnapshotId.equals(o._referenceSnapshotId)); } WorkDetails(
      NetworkId networkId,
      SnapshotId snapshotId,
      boolean isDifferential,
      WorkType workType,
      @Nullable SnapshotId referenceSnapshotId,
      @Nullable AnalysisId analysisId,
      @Nullable QuestionId questionId); static @Nonnull Builder builder(); @Nullable AnalysisId getAnalysisId(); boolean isDifferential(); @Nonnull NetworkId getNetworkId(); @Nullable QuestionId getQuestionId(); @Nullable SnapshotId getReferenceSnapshotId(); @Nonnull SnapshotId getSnapshotId(); @Nonnull WorkType getWorkType(); boolean isOverlappingInput(WorkDetails o); }
WorkDetails { public boolean isOverlappingInput(WorkDetails o) { return _snapshotId.equals(o._snapshotId) || _snapshotId.equals(o._referenceSnapshotId) || _isDifferential && (_referenceSnapshotId.equals(o._snapshotId) || _referenceSnapshotId.equals(o._referenceSnapshotId)); } WorkDetails(
      NetworkId networkId,
      SnapshotId snapshotId,
      boolean isDifferential,
      WorkType workType,
      @Nullable SnapshotId referenceSnapshotId,
      @Nullable AnalysisId analysisId,
      @Nullable QuestionId questionId); static @Nonnull Builder builder(); @Nullable AnalysisId getAnalysisId(); boolean isDifferential(); @Nonnull NetworkId getNetworkId(); @Nullable QuestionId getQuestionId(); @Nullable SnapshotId getReferenceSnapshotId(); @Nonnull SnapshotId getSnapshotId(); @Nonnull WorkType getWorkType(); boolean isOverlappingInput(WorkDetails o);  }