java.lang.Object
io.qt.QtObject
io.qt.core.QBitArray
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Array of bits
Java wrapper for Qt's class QBitArray
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQBitArray
(long size) Overloaded constructor forQBitArray(long, boolean)
withval = false
.QBitArray
(long size, boolean val) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QBitArray
final void
final boolean
at
(long i) final ByteBuffer
bits()
final void
clear()
final void
clearBit
(long i) clone()
final long
count()
final long
count
(boolean on) final void
detach()
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.final boolean
fill
(boolean val) Overloaded function forfill(boolean, long)
withsize = -1
.final boolean
fill
(boolean val, long size) final void
fill
(boolean val, long first, long last) static QBitArray
fromBits
(boolean[] data) static QBitArray
fromBits
(byte[] data) static QBitArray
final boolean
get
(long i) int
hashCode()
final QBitArray
inverted()
final boolean
final boolean
isEmpty()
final boolean
isNull()
final QBitArray
void
readFrom
(QDataStream arg__1) final void
resize
(long size) final void
set
(long i, boolean value) final void
Deprecated.final void
setBit
(long i) final void
setBit
(long i, boolean val) final long
size()
final void
final boolean
testBit
(long i) final boolean[]
final boolean
toggleBit
(long i) final Integer
toInteger
(QSysInfo.Endian endianness) toString()
final void
truncate
(long pos) void
writeTo
(QDataStream arg__1) final QBitArray
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QBitArray
public QBitArray() -
QBitArray
-
QBitArray
public QBitArray(long size) Overloaded constructor for
QBitArray(long, boolean)
withval = false
. -
QBitArray
public QBitArray(long size, boolean val) -
QBitArray
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
at
-
bits
-
clear
-
clearBit
-
count
-
count
-
detach
-
fill
-
fill
Overloaded function for
fill(boolean, long)
withsize = -1
. -
fill
-
isDetached
-
isEmpty
-
isNull
-
and
-
writeTo
-
set
Deprecated.Useassign(io.qt.core.QBitArray)
instead. -
assign
-
readFrom
-
get
-
set
-
xor
-
or
-
inverted
-
resize
-
setBit
-
setBit
-
size
-
swap
-
testBit
-
toInteger
-
toggleBit
-
truncate
-
fromBits
-
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. -
hashCode
-
toBitArray
-
fromBits
-
fromBits
-
toString
-
clone
-
assign(io.qt.core.QBitArray)
instead.