Class VersionRange


  • public class VersionRange
    extends java.lang.Object
    Holds a range of version numbers. Used to record which versions a field belongs to. Version numbers start at 1.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static VersionRange ALL_VERSIONS
      Version range that includes all versions.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static VersionRange allVersionsFrom​(int firstVersion)
      Factory for a range with a start version that includes all later versions.
      boolean includesVersion​(int version)
      Does this range include the version?
      static VersionRange range​(int firstVersion, int lastVersion)
      Factory for a range.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ALL_VERSIONS

        public static final VersionRange ALL_VERSIONS
        Version range that includes all versions.
    • Method Detail

      • allVersionsFrom

        public static VersionRange allVersionsFrom​(int firstVersion)
        Factory for a range with a start version that includes all later versions.
      • includesVersion

        public boolean includesVersion​(int version)
        Does this range include the version?