Class VersionsNotification


  • public class VersionsNotification
    extends Object
    A simple class that matches the current state of versioning to a set of messages that might be useful to the user.
    • Constructor Detail

      • VersionsNotification

        public VersionsNotification​(boolean isNewest,
                                    boolean isStable,
                                    boolean stablesBefore,
                                    boolean stablesAfter,
                                    VersionedObjectStore.Version latestStableVersion)
    • Method Detail

      • isNewest

        public boolean isNewest()
      • isStable

        public boolean isStable()
      • hasStablesBefore

        public boolean hasStablesBefore()
      • hasStablesAfter

        public boolean hasStablesAfter()
      • isWarning

        public boolean isWarning()
      • getNotificationMessage

        public String getNotificationMessage()
        Returns the message associated with this notification
        Returns:
        a message that can be empty, but is never null.
      • isHighlightWarning

        public boolean isHighlightWarning()
      • areAllVersionsUnstable

        public boolean areAllVersionsUnstable()
        Returns:
        True or False, depending if all versions of the project are unstable, meaning no version has been marked as stable