245 bool equals(const
object& obj) const noexcept override;
344 int32 revision_ = -1;
348#include "literals/version.hpp"
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
object()=default
Create a new instance of the ultimate base class object.
int32 major() const noexcept
Gets the value of the major component of the version number for the current xtd::version object.
xtd::uint64 to_uint64() const
Convert the value of the current xtd::version object to its equivalent xtd::uint64 representation.
int32 minor() const noexcept
Gets the value of the minor component of the version number for the current xtd::version object.
version() noexcept=default
Initializes a new instance of the xtd::version class.
static bool try_parse(const xtd::string &input, version &result) noexcept
Tries to convert the string representation of a version number to an equivalent xtd::version object,...
int16 major_revision() const noexcept
Gets the high 16 bits of the revision number.
int32 build() const noexcept
Gets the value of the build component of the version number for the current xtd::version object.
static version from_uint64(xtd::uint64 value) noexcept
Creates a new xtd::version object from its 64-bit integer representation.
int32 compare_to(const version &version) const noexcept override
Compares the current xtd::version object to a specified object and returns an indication of their rel...
static version parse(const xtd::string &input)
Converts the string representation of a version number to an equivalent Version object.
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::string to_string() const noexcept override
Converts the value of the current xtd::version object to its equivalent xtd::string representation.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
int32 revision() const noexcept
Gets the value of the revision component of the version number for the current xtd::version object.
int16 minor_revision() const noexcept
Gets the low 16 bits of the revision number.
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
@ v
The V key.
Definition console_key.hpp:130
Contains xtd::icomparable interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::string alias.