Class ResponsibilityFunctions


  • public class ResponsibilityFunctions
    extends java.lang.Object
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    • Constructor Detail

      • ResponsibilityFunctions

        public ResponsibilityFunctions()
    • Method Detail

      • isActive

        public static boolean isActive​(@Nullable
                                       ResponsibilityEntry responsibilityEntry)
        Returns whether the responsibility is active.
        Parameters:
        responsibilityEntry - responsibility entry
        Returns:
        whether the responsibility is active
      • isFixed

        public static boolean isFixed​(@Nullable
                                      ResponsibilityEntry responsibilityEntry)
        Returns whether the responsibility is fixed.
        Parameters:
        responsibilityEntry - responsibility entry
        Returns:
        whether the responsibility is fixed
      • isUserResponsible

        public static boolean isUserResponsible​(@Nullable
                                                ResponsibilityEntry responsibilityEntry,
                                                @NotNull
                                                User user)
        Returns whether specified user is responsible.
        Parameters:
        responsibilityEntry - responsibility entry
        user - the user
        Returns:
        whether specified user is responsible
      • isUserFixed

        public static boolean isUserFixed​(@Nullable
                                          ResponsibilityEntry responsibilityEntry,
                                          @NotNull
                                          User user)
        Returns whether specified user fixed the entry.
        Parameters:
        responsibilityEntry - responsibility entry
        user - the user
        Returns:
        whether specified user fixed the entry
      • hasComment

        public static boolean hasComment​(@Nullable
                                         ResponsibilityEntry responsibilityEntry)
        Returns whether the responsibility entry has a non-empty comment.
        Parameters:
        responsibilityEntry - responsibility entry
        Returns:
        whether the responsibility entry has a non-empty comment
      • hasResponsible

        public static boolean hasResponsible​(@Nullable
                                             ResponsibilityEntry responsibilityEntry)
        Returns whether the responsibility entry has a responsible user.
        Parameters:
        responsibilityEntry - responsibility entry
        Returns:
        whether the responsibility entry has a responsible user
      • hasReporter

        public static boolean hasReporter​(@Nullable
                                          ResponsibilityEntry responsibilityEntry)
        Returns whether the responsibility entry has a reporter user.
        Parameters:
        responsibilityEntry - responsibility entry
        Returns:
        whether the responsibility entry has a reporter user