Package com.backblaze.b2.json
Class VersionRange
- java.lang.Object
-
- com.backblaze.b2.json.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.
-
-
-
Field Detail
-
ALL_VERSIONS
public static final VersionRange ALL_VERSIONS
Version range that includes all versions.
-
-
Method Detail
-
range
public static VersionRange range(int firstVersion, int lastVersion) throws B2JsonException
Factory for a range.- Throws:
B2JsonException
-
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?
-
-