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
ConstructorsConstructorDescriptionQVersionNumber
(int maj) QVersionNumber
(int ... args) QVersionNumber
(int maj, int min) QVersionNumber
(int maj, int min, int mic) -
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) Seeoperator==(QVersionNumber,
QVersionNumber) boolean
Seeoperator==(QVersionNumber,
QVersionNumber) 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) Seeoperator>>(QDataStream&,
QVersionNumber&) final int
segmentAt
(int index) final int
final QVector
<@QtPrimitiveType Integer> segments()
final String
toString()
void
writeTo
(QDataStream out) Seeoperator<<(QDataStream&,
QVersionNumber) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QVersionNumber
public 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
See
operator<<(QDataStream&,
QVersionNumber) -
equals
See
operator==(QVersionNumber,
QVersionNumber) -
readFrom
See
operator>>(QDataStream&,
QVersionNumber&) -
segmentAt
-
segmentCount
-
segments
-
toString
-
commonPrefix
-
compare
-
fromString
-
equals
See
operator==(QVersionNumber,
QVersionNumber) -
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.
-
fromString
Overloaded function for
fromString(java.lang.String, int[])
withsuffixIndex = null
.
-