Interface VersibleComponent

All Superinterfaces:
Comparable<VersibleComponent>
All Known Implementing Classes:
VersibleComponent.Alphabetic, VersibleComponent.Numeric, VersibleComponent.Suffix

public interface VersibleComponent extends Comparable<VersibleComponent>
Represents a component within a version string.
  • Method Details

    • of

      static VersibleComponent.Numeric of(long number)
      Returns a numeric component with the given number. The number must be positive or zero.
      Parameters:
      number - The number to use for the numeric component.
      Returns:
      A numeric component with the corresponding number.
    • of

      Returns an alphabetic component with the given string. The string must only contain letters.
      Parameters:
      word - The word to use for the alphabetic component
      Returns:
      An alphabetic component with the corresponding word.
    • suffix

      static VersibleComponent.Suffix suffix(boolean positive)
      Returns a suffix component for the corresponding positive/negative tag type.
      Parameters:
      positive - Whether the tag type is positive true or negetive false.
      Returns:
      A suffix component with the corresponding tag type.