246 [[nodiscard]] auto
equals(const
object& obj) const noexcept ->
bool override;
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:22
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:115
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto major_revision() const noexcept -> xtd::int16
Gets the high 16 bits of the revision number.
auto compare_to(const xtd::version &version) const noexcept -> xtd::int32 override
Compares the current xtd::version object to a specified object and returns an indication of their rel...
version() noexcept=default
Initializes a new instance of the xtd::version class.
static auto from_uint64(xtd::uint64 value) noexcept -> version
Creates a new xtd::version object from its 64-bit integer representation.
auto minor_revision() const noexcept -> xtd::int16
Gets the low 16 bits of the revision number.
static auto parse(const xtd::string &input) -> version
Converts the string representation of a version number to an equivalent Version object.
auto equals(const object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto to_uint64() const -> xtd::uint64
Convert the value of the current xtd::version object to its equivalent xtd::uint64 representation.
auto to_string() const noexcept -> xtd::string override
Converts the value of the current xtd::version object to its equivalent xtd::string representation.
static auto try_parse(const xtd::string &input, version &result) noexcept -> bool
Tries to convert the string representation of a version number to an equivalent xtd::version object,...
auto build() const noexcept -> xtd::int32
Gets the value of the build component of the version number for the current xtd::version object.
auto major() const noexcept -> xtd::int32
Gets the value of the major component of the version number for the current xtd::version object.
auto minor() const noexcept -> xtd::int32
Gets the value of the minor component of the version number for the current xtd::version object.
auto revision() const noexcept -> xtd::int32
Gets the value of the revision component of the version number for the current xtd::version object.
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
auto parse(const std::string &str) -> value_t
Convert a string into a type.
Definition parse.hpp:34
@ v
The V key.
Definition console_key.hpp:130
Contains xtd::icomparable interface.
Contains xtd::version suffixes.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::parse methods.
Contains xtd::string alias.