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
-
QVersionNumber
See
QVersionNumber::
QVersionNumber(QVersionNumber) -
QVersionNumber
public QVersionNumber(int maj) -
QVersionNumber
public QVersionNumber(int maj, int min) -
QVersionNumber
public QVersionNumber(int maj, int min, int mic) -
QVersionNumber
public QVersionNumber(int ... args)
-
-
Method Details
-
isNormalized
-
isNull
-
isPrefixOf
-
majorVersion
-
microVersion
-
minorVersion
-
normalized
-
writeTo
-
equals
-
readFrom
-
segmentAt
-
segmentCount
-
segments
-
toString
-
commonPrefix
-
compare
-
fromString
-
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
.
-