java.lang.Object
io.qt.QtObject
io.qt.core.QVersionNumber
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QVersionNumber>
Contains a version number with an arbitrary number of segments
Java wrapper for Qt class QVersionNumber
-
Constructor Summary
ConstructorDescriptionQVersionNumber
(int maj) QVersionNumber
(int ... args) QVersionNumber
(int maj, int min) QVersionNumber
(int maj, int min, int mic) QVersionNumber
(QVersionNumber other) SeeQVersionNumber::
QVersionNumber(QVersionNumber) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.static QVersionNumber
commonPrefix
(QVersionNumber v1, QVersionNumber v2) static int
compare
(QVersionNumber v1, QVersionNumber v2) int
compareTo
(QVersionNumber other) final boolean
equals
(QVersionNumber rhs) boolean
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
(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:
seg
-
-
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
public QVersionNumber(int ... args) - Parameters:
args
-
-
-
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
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QVersionNumber>
-
hashCode
Returns the objects's hash code computed byqHash(QVersionNumber)
. -
clone
Creates and returns a copy of this object.
See
QVersionNumber::
QVersionNumber(QVersionNumber) -
fromString
Overloaded function for
fromString(java.lang.String, int[])
withsuffixIndex = null
.
-