- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<Object>
Contains a version number with an arbitrary number of segments
Java wrapper for Qt class QVersionNumber
-
Constructor Summary
ConstructorDescriptionQVersionNumber
(int maj) QVersionNumber
(int ... args) Overloaded constructor forQVersionNumber(io.qt.core.QConstSpan)
.QVersionNumber
(int maj, int min) QVersionNumber
(int maj, int min, int mic) Overloaded constructor forQVersionNumber(io.qt.core.QConstSpan)
.QVersionNumber
(QVersionNumber other) SeeQVersionNumber::
QVersionNumber(QVersionNumber) QVersionNumber
(IntBuffer args) Overloaded constructor forQVersionNumber(io.qt.core.QConstSpan)
.Overloaded constructor forQVersionNumber(io.qt.core.QConstSpan)
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.static QVersionNumber
commonPrefix
(int [] v1, int [] v2) Overloaded function forcommonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static QVersionNumber
commonPrefix
(int [] v1, QVersionNumber v2) Overloaded function forcommonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static QVersionNumber
commonPrefix
(QVersionNumber v1, int [] v2) Overloaded function forcommonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static QVersionNumber
commonPrefix
(QVersionNumber v1, QVersionNumber v2) static int
compare
(int [] v1, int [] v2) Overloaded function forcompare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static int
compare
(int [] v1, QVersionNumber v2) Overloaded function forcompare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static int
compare
(QVersionNumber v1, int [] v2) Overloaded function forcompare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
.static int
compare
(QVersionNumber v1, QVersionNumber v2) int
Compares to other object depending on its type.final boolean
equals
(int [] rhs) Overloaded function forequals(io.qt.core.QVersionNumber)
.final boolean
equals
(QVersionNumber rhs) boolean
Checks for equality depending on the type of given object.static QVersionNumber
fromString
(String string) Overloaded function forfromString(java.lang.String, int[])
withsuffixIndex = null
.static QVersionNumber
fromString
(String string, int [] suffixIndex) int
hashCode()
Returns the objects's hash code computed byqHash(QVersionNumber)
.final boolean
final boolean
isNull()
final boolean
isPrefixOf
(int [] other) Overloaded function forisPrefixOf(io.qt.core.QVersionNumber)
.final boolean
isPrefixOf
(QVersionNumber other) final int
final int
final int
final QVersionNumber
void
readFrom
(QDataStream in) final int
segmentAt
(long index) final long
final QList<@QtPrimitiveType Integer>
segments()
final String
toString()
void
writeTo
(QDataStream out) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVersionNumber
public QVersionNumber() -
QVersionNumber
- Parameters:
args
-- Since:
- This function was introduced in Qt 6.8.
-
QVersionNumber
See
QVersionNumber::
QVersionNumber(QVersionNumber) - Parameters:
other
-
-
QVersionNumber
public QVersionNumber(int maj) - Parameters:
maj
-
-
QVersionNumber
public QVersionNumber(int maj, int min) - Parameters:
maj
-min
-
-
QVersionNumber
public QVersionNumber(int maj, int min, int mic) - Parameters:
maj
-min
-mic
-
-
QVersionNumber
Overloaded constructor for
QVersionNumber(io.qt.core.QConstSpan)
. -
QVersionNumber
Overloaded constructor for
QVersionNumber(io.qt.core.QConstSpan)
. -
QVersionNumber
Overloaded constructor for
QVersionNumber(io.qt.core.QConstSpan)
. -
QVersionNumber
public QVersionNumber(int ... args) Overloaded constructor for
QVersionNumber(io.qt.core.QConstSpan)
.
-
-
Method Details
-
isNormalized
- Returns:
-
isNull
- Returns:
-
isPrefixOf
- Parameters:
other
-- Returns:
-
majorVersion
- Returns:
-
microVersion
- Returns:
-
minorVersion
- Returns:
-
normalized
- Returns:
-
writeTo
- Parameters:
out
-
-
equals
- Parameters:
rhs
-- Returns:
-
readFrom
- Parameters:
in
-
-
segmentAt
- Parameters:
index
-- Returns:
-
segmentCount
- Returns:
-
segments
- Returns:
-
toString
-
commonPrefix
- Parameters:
v1
-v2
-- Returns:
-
compare
- Parameters:
v1
-v2
-- Returns:
-
fromString
- Parameters:
string
-suffixIndex
-- Returns:
- Since:
- This function was introduced in Qt 6.4.
-
equals
Checks for equality depending on the type of given object.
ckecked by toQVersionNumber
operator==(QVersionNumber,
QVersionNumber) int[]
ckecked by tooperator==(QVersionNumber,
QVersionNumber)
-
compareTo
Compares to other object depending on its type.
compared byQVersionNumber
operator<(QVersionNumber,
QVersionNumber) int[]
compared byoperator<(QVersionNumber,
QVersionNumber)
- Specified by:
compareTo
in interfaceComparable<Object>
-
hashCode
Returns the objects's hash code computed byqHash(QVersionNumber)
. -
clone
Creates and returns a copy of this object.
See
QVersionNumber::
QVersionNumber(QVersionNumber) -
isPrefixOf
Overloaded function for
isPrefixOf(io.qt.core.QVersionNumber)
. -
equals
Overloaded function for
equals(io.qt.core.QVersionNumber)
. -
commonPrefix
Overloaded function for
commonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
commonPrefix
Overloaded function for
commonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
commonPrefix
Overloaded function for
commonPrefix(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
compare
Overloaded function for
compare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
compare
Overloaded function for
compare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
compare
public static int compare(int [] v1, int [] v2) Overloaded function for
compare(io.qt.core.QVersionNumber, io.qt.core.QVersionNumber)
. -
fromString
Overloaded function for
fromString(java.lang.String, int[])
withsuffixIndex = null
.
-