Class VersionRange
java.lang.Object
com._1c.g5.v8.dt.platform.version.VersionRange
Defines
Examples: [8.3.5;8.3.6), (8.3.5;8.3.6), [8.3.5;8.3.6], (8.3.5;8.3.6]
Version range Examples: [8.3.5;8.3.6), (8.3.5;8.3.6), [8.3.5;8.3.6], (8.3.5;8.3.6]
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VersionRangeAn empty version range.final booleanfinal Versionfinal booleanfinal Version -
Constructor Summary
ConstructorsConstructorDescriptionVersionRange(Version minVersion, boolean minInclusive, Version maxVersion, boolean maxInclusive) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks that current range containsversionbooleanisIntersect(VersionRange range) Checks version range for intersect
-
Field Details
-
EMPTY_RANGE
An empty version range. The empty version range includes all valid versions (any version greater than or equal to the version 0.0.0). -
minVersion
-
minInclusive
public final boolean minInclusive -
maxVersion
-
maxInclusive
public final boolean maxInclusive
-
-
Constructor Details
-
VersionRange
public VersionRange(Version minVersion, boolean minInclusive, Version maxVersion, boolean maxInclusive) Constructor- Parameters:
minVersion- min version of range, can't benullminInclusive- inclusive or not forminVersionmaxVersion- max version of range, ifnullthen maxVersion = new Version(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE)maxInclusive- inclusive or not formaxVersion- Throws:
IllegalArgumentException- if validation error was detected
-
-
Method Details
-
isIntersect
Checks version range for intersect- Parameters:
range- checking range, can't benull- Returns:
trueif intersect
-
isInRange
Checks that current range containsversion- Parameters:
version- checking version, can't benull- Returns:
trueif intersect
-