java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QVersionNumber
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QVersionNumber>
public class QVersionNumber extends QtObject implements Comparable<QVersionNumber>, Cloneable
Contains a version number with an arbitrary number of segments
Java wrapper for Qt class QVersionNumber
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QVersionNumber()
QVersionNumber(int maj)
QVersionNumber(int... args)
QVersionNumber(int maj, int min)
QVersionNumber(int maj, int min, int mic)
protected
QVersionNumber(QtObject.QPrivateConstructor p)
Constructor for internal use only.QVersionNumber(Collection<Integer> seg)
-
Method Summary
Modifier and Type Method Description QVersionNumber
clone()
static QVersionNumber
commonPrefix(QVersionNumber v1, QVersionNumber v2)
static int
compare(QVersionNumber v1, QVersionNumber v2)
int
compareTo(QVersionNumber other)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.static QVersionNumber
fromString(String string)
Overloaded function forfromString(java.lang.String, int[])
withsuffixIndex = null
.static QVersionNumber
fromString(String string, int[] suffixIndex)
int
hashCode()
boolean
isNormalized()
boolean
isNull()
boolean
isPrefixOf(QVersionNumber other)
int
majorVersion()
int
microVersion()
int
minorVersion()
QVersionNumber
normalized()
void
readFrom(QDataStream in)
int
segmentAt(int index)
int
segmentCount()
QList<Integer>
segments()
String
toString()
void
writeTo(QDataStream out)
-
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) -
QVersionNumber
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isNormalized
-
isNull
-
isPrefixOf
-
majorVersion
-
microVersion
-
minorVersion
-
normalized
-
writeTo
-
readFrom
-
segmentAt
-
segmentCount
-
segments
-
toString
-
commonPrefix
-
compare
-
fromString
Overloaded function for
fromString(java.lang.String, int[])
withsuffixIndex = null
. -
fromString
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QVersionNumber>
-
hashCode
-
clone
-