java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.qml.QJSPrimitiveValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QJSPrimitiveValue>
public class QJSPrimitiveValue extends QtObject implements Comparable<QJSPrimitiveValue>, Cloneable
Operates on primitive types in JavaScript semantics
Java wrapper for Qt class QJSPrimitiveValue
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QJSPrimitiveValue.Type
Java wrapper for Qt enum QJSPrimitiveValue::Type -
Constructor Summary
Constructors Modifier Constructor Description QJSPrimitiveValue()
QJSPrimitiveValue(boolean value)
QJSPrimitiveValue(double value)
QJSPrimitiveValue(int value)
protected
QJSPrimitiveValue(QtObject.QPrivateConstructor p)
Constructor for internal use only.QJSPrimitiveValue(Object variant)
QJSPrimitiveValue(String string)
-
Method Summary
Modifier and Type Method Description QJSPrimitiveValue
added(QJSPrimitiveValue rhs)
QJSPrimitiveValue
clone()
int
compareTo(QJSPrimitiveValue other)
QJSPrimitiveValue
divided(QJSPrimitiveValue rhs)
boolean
equals(QJSPrimitiveValue 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.int
hashCode()
QJSPrimitiveValue
modulo(QJSPrimitiveValue rhs)
QJSPrimitiveValue
multiplied(QJSPrimitiveValue rhs)
boolean
strictlyEquals(QJSPrimitiveValue other)
QJSPrimitiveValue
substracted(QJSPrimitiveValue rhs)
boolean
toBoolean()
double
toDouble()
int
toInteger()
String
toString()
Object
toVariant()
QJSPrimitiveValue.Type
type()
-
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
-
modulo
-
multiplied
-
added
-
substracted
-
divided
-
strictlyEquals
-
toBoolean
-
toDouble
-
toInteger
-
toString
-
toVariant
-
type
-
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<QJSPrimitiveValue>
-
hashCode
-
clone
-