Skip to main content
Bazel Documentation home page
HEAD
English
Search...
⌘K
Ask AI
Module Registry
Blog
Github
Search...
Navigation
DottedVersion
About Bazel
Getting started
User guide
Reference
Extending
Community
Why Bazel?
Intro to Bazel
Why Bazel?
Bazel Vision
Bazel roadmap
FAQ
Build system basics
Basics
Why a Build System?
Task-Based Build Systems
Artifact-Based Build Systems
Distributed Builds
Dependency Management
Hermeticity
On this page
Members
compare_to
Parameters
DottedVersion
A value representing a version with multiple components, separated by periods, such as 1.2.3.4.
Members
compare_to
compare_to
int DottedVersion.compare_to(other)
Compares based on most significant (first) not-matching version component. So, for example, 1.2.3 < 1.2.4
Parameters
Parameter
Description
other
required The other dotted version.
⌘I
Assistant
Responses are generated using AI and may contain mistakes.