Class PreRelease

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PreRelease NULL
      An empty pre-release instance used it no pre-release is provided.
    • Constructor Summary

      Constructors 
      Constructor Description
      PreRelease​(@NotNull java.util.List<PreReleaseIdentifier> identifiers)
      Constructs a new pre-release with the provided identifiers.
    • Field Detail

      • NULL

        public static final PreRelease NULL
        An empty pre-release instance used it no pre-release is provided.
    • Constructor Detail

      • PreRelease

        public PreRelease​(@NotNull
                          @NotNull java.util.List<PreReleaseIdentifier> identifiers)
        Constructs a new pre-release with the provided identifiers.
        Parameters:
        identifiers - The identifiers for this pre-release.
    • Method Detail

      • compareTo

        public int compareTo​(@NotNull
                             @NotNull PreRelease o)
        Specified by:
        compareTo in interface java.lang.Comparable<PreRelease>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getIdentifiers

        public java.util.List<PreReleaseIdentifier> getIdentifiers()
        The internal identifiers
        Returns:
        The internal identifies of this pre-release
      • getFormatted

        @NotNull
        public @NotNull java.lang.String getFormatted()
        Description copied from interface: Formattable
        This object represented as a short and human readable string.
        Specified by:
        getFormatted in interface Formattable
        Returns:
        This object as a readable string.
      • equals

        @Contract(value="null -> false",
                  pure=true)
        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object