Class SpecificModeInterference

java.lang.Object
com.palantir.gradle.suppressibleerrorprone.modes.common.SpecificModeInterference
All Implemented Interfaces:
ModeInterference

public abstract class SpecificModeInterference extends Object implements ModeInterference
This is a helper class when there are just a set of Modes that always interfere with each other, to reduce some Set logic overhead.
  • Constructor Details

    • SpecificModeInterference

      public SpecificModeInterference()
  • Method Details

    • interferingModes

      protected abstract Set<ModeName> interferingModes()
    • interferesWith

      public final ModeInterferenceResult interferesWith(Set<ModeName> modeNames)
      Description copied from interface: ModeInterference
      Identify which of the flags interfere with each other.
      Specified by:
      interferesWith in interface ModeInterference
      Parameters:
      modeNames - The flags that are enabled in this run
      Returns:
      Either no interference, the flags that interfere with each other, or why they are incompatible