Enum Class SpringVersion

java.lang.Object
java.lang.Enum<SpringVersion>
io.microsphere.spring.core.SpringVersion
All Implemented Interfaces:
Serializable, Comparable<SpringVersion>, Constable

public enum SpringVersion extends Enum<SpringVersion>
The enumeration for the released Spring versions since 6.0
Since:
1.0.0
Author:
Mercy
  • Enum Constant Details

  • Method Details

    • values

      public static SpringVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpringVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVersion

      public io.microsphere.util.Version getVersion()
    • getMajor

      public int getMajor()
    • getMinor

      public int getMinor()
    • getPatch

      public int getPatch()
    • gt

      public boolean gt(SpringVersion that)
    • isGreaterThan

      public boolean isGreaterThan(SpringVersion that)
    • ge

      public boolean ge(SpringVersion that)
    • isGreaterOrEqual

      public boolean isGreaterOrEqual(SpringVersion that)
    • lt

      public boolean lt(SpringVersion that)
    • isLessThan

      public boolean isLessThan(SpringVersion that)
    • le

      public boolean le(SpringVersion that)
    • isLessOrEqual

      public boolean isLessOrEqual(SpringVersion that)
    • eq

      public boolean eq(SpringVersion that)
    • equals

      public boolean equals(SpringVersion that)