All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.opitzconsulting.orcas.diff.RecreateNeededRegistry Maven / Gradle / Ivy

The newest version!
package de.opitzconsulting.orcas.diff;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import de.opitzconsulting.orcas.diff.DiffReasonKey.DiffReasonKeyRegistry;
import de.opitzconsulting.orcas.orig.diff.AbstractDiff;

public class RecreateNeededRegistry
{
  private Map> recreateDiffDiffActionReasonMap = new HashMap<>();
  private DiffReasonKeyRegistry diffReasonKeyRegistry;

  public RecreateNeededRegistry( DiffReasonKeyRegistry pDiffReasonKeyRegistry )
  {
    diffReasonKeyRegistry = pDiffReasonKeyRegistry;
  }

  public boolean isRecreateNeeded( AbstractDiff pDiff )
  {
    return recreateDiffDiffActionReasonMap.containsKey( pDiff );
  }

  public List getRecreateNeededReasons( AbstractDiff pDiff )
  {
    return recreateDiffDiffActionReasonMap.get( pDiff );
  }

  public  RecreateNeededBuilder createRecreateNeededBuilder( T pDiff )
  {
    return new RecreateNeededBuilder( pDiff, diffReasonKeyRegistry, recreateDiffDiffActionReasonMap );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy