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
- Since:
- This class was introduced in Qt 5.6.
-
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) 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
- 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
See
operator<<(QDataStream&,
QVersionNumber) - Parameters:
out
-
-
equals
See
operator==(QVersionNumber,
QVersionNumber) - Parameters:
rhs
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QVersionNumber&) - 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:
-
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.
See
QVersionNumber::
QVersionNumber(QVersionNumber) -
fromString
Overloaded function for
fromString(java.lang.String, int[])
withsuffixIndex = null
.
-