java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.qml.QJSPrimitiveValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QJSPrimitiveValue>
Operates on primitive types in JavaScript semantics
Java wrapper for Qt's class QJSPrimitiveValue
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQJSPrimitiveValue
(boolean value) QJSPrimitiveValue
(double value) QJSPrimitiveValue
(int value) protected
Constructor for internal use only.QJSPrimitiveValue
(Object variant) QJSPrimitiveValue
(String string) -
Method Summary
Modifier and TypeMethodDescriptionfinal QJSPrimitiveValue
added
(QJSPrimitiveValue rhs) Deprecated.clone()
int
compareTo
(QJSPrimitiveValue other) final QJSPrimitiveValue
dec()
final QJSPrimitiveValue
div
(QJSPrimitiveValue rhs) final QJSPrimitiveValue
divided
(QJSPrimitiveValue rhs) Deprecated.final boolean
equals
(QJSPrimitiveValue other) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final QJSPrimitiveValue
inc()
final QJSPrimitiveValue
minus
(QJSPrimitiveValue rhs) final QJSPrimitiveValue
mod
(QJSPrimitiveValue rhs) final QJSPrimitiveValue
modulo
(QJSPrimitiveValue rhs) Deprecated.final QJSPrimitiveValue
Deprecated.final QJSPrimitiveValue
plus
(QJSPrimitiveValue rhs) final boolean
strictlyEquals
(QJSPrimitiveValue other) final QJSPrimitiveValue
Deprecated.final QJSPrimitiveValue
times
(QJSPrimitiveValue rhs) final boolean
final double
toDouble()
final int
final String
toString()
final Object
final QJSPrimitiveValue.Type
type()
final QJSPrimitiveValue
final QJSPrimitiveValue
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QJSPrimitiveValue
public QJSPrimitiveValue() -
QJSPrimitiveValue
-
QJSPrimitiveValue
public QJSPrimitiveValue(boolean value) -
QJSPrimitiveValue
-
QJSPrimitiveValue
public QJSPrimitiveValue(double value) -
QJSPrimitiveValue
public QJSPrimitiveValue(int value) -
QJSPrimitiveValue
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
equals
-
mod
-
times
-
unaryPlus
-
plus
-
inc
-
unaryMinus
-
minus
-
dec
-
div
-
strictlyEquals
-
toBoolean
-
toDouble
-
toInteger
-
toString
-
toVariant
-
type
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QJSPrimitiveValue>
-
hashCode
-
modulo
Deprecated. -
multiplied
Deprecated. -
added
Deprecated. -
divided
Deprecated. -
substracted
Deprecated. -
clone
-