Class SCMTraitDescriptor<T extends SCMTrait<T>>

    • Method Detail

      • getScmClass

        public Class<? extends SCM> getScmClass()
        Returns the type of SCM that this SCMTrait is applicable to.
        Returns:
        the type of SCM that this SCMTrait is applicable to.
      • isApplicableToSCM

        public boolean isApplicableToSCM​(@NonNull
                                         Class<? extends SCM> scmClass)
        Checks if the SCMTrait is relevant to the specified type of SCM.
        Parameters:
        scmClass - the type of SCM.
        Returns:
        true if applicable to the specified type of SCM.
      • isApplicableToSCM

        public boolean isApplicableToSCM​(@NonNull
                                         SCMDescriptor<?> scm)
        Checks if the SCMTrait is relevant to the specified SCM.
        Parameters:
        scm - the SCMDescriptor for the type of SCM.
        Returns:
        true if applicable to the specified type of SCM.