java.lang.Object
io.qt.QtObject
io.qt.core.QBitArray
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Array of bits
Java wrapper for Qt class QBitArray
-
Constructor Summary
ConstructorDescriptionQBitArray
(long size) Overloaded constructor forQBitArray(long, boolean)
withval = false
.QBitArray
(long size, boolean val) -
Method Summary
Modifier and TypeMethodDescriptionfinal QBitArray
Seeoperator&(QBitArray,
QBitArray) final void
final void
final boolean
at
(long i) final ByteBuffer
bits()
final void
clear()
final void
clearBit
(long i) clone()
Creates and returns a copy of this object.final long
count()
final long
count
(boolean on) final void
detach()
SeeQBitArray::
detach() final boolean
boolean
final boolean
fill
(boolean aval) Overloaded function forfill(boolean, long)
withasize = -1
.final boolean
fill
(boolean aval, long asize) final void
fill
(boolean val, long first, long last) static QBitArray
fromBits
(boolean[] data) static QBitArray
fromBits
(byte[] data) Overloaded function forfromBits(java.nio.ByteBuffer)
.static QBitArray
fromBits
(byte[] data, int offsetOfData, int len) Overloaded function forfromBits(java.nio.ByteBuffer)
.static QBitArray
fromBits
(ByteBuffer data) final boolean
get
(long i) int
hashCode()
Returns the objects's hash code computed byqHash(QBitArray)
.final QBitArray
inverted()
final boolean
SeeQBitArray::
isDetached()const final boolean
isEmpty()
final boolean
isNull()
final QBitArray
Seeoperator|(QBitArray,
QBitArray) final void
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QBitArray&) final void
resize
(long size) final void
set
(long i, boolean value) SeeQBitArray::
operator[](qsizetype) 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()
Seeoperator<<(QDebug,
QBitArray) final void
truncate
(long pos) void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QBitArray) final QBitArray
Seeoperator^(QBitArray,
QBitArray) final void
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QBitArray
public QBitArray() -
QBitArray
- Parameters:
other
-
-
QBitArray
public QBitArray(long size, boolean val) - Parameters:
size
-val
-
-
QBitArray
public QBitArray(long size) Overloaded constructor for
QBitArray(long, boolean)
withval = false
.
-
-
Method Details
-
at
- Parameters:
i
-- Returns:
-
bits
- Returns:
-
clear
-
clearBit
- Parameters:
i
-
-
count
- Returns:
-
count
- Parameters:
on
-- Returns:
-
detach
See
QBitArray::
detach() -
fill
- Parameters:
aval
-asize
-- Returns:
-
fill
- Parameters:
val
-first
-last
-
-
isDetached
See
QBitArray::
isDetached()const - Returns:
-
isEmpty
- Returns:
-
isNull
- Returns:
-
and
See
operator&(QBitArray,
QBitArray) - Parameters:
a2
-- Returns:
-
andAssign
- Parameters:
arg__1
-
-
writeTo
See
operator<<(QDataStream&,
QBitArray) - Parameters:
arg__1
-
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QBitArray&) - Parameters:
arg__1
-
-
get
- Parameters:
i
-- Returns:
-
set
See
QBitArray::
operator[](qsizetype) - Parameters:
i
-value
-
-
xor
See
operator^(QBitArray,
QBitArray) - Parameters:
a2
-- Returns:
-
xorAssign
- Parameters:
arg__1
-
-
or
See
operator|(QBitArray,
QBitArray) - Parameters:
a2
-- Returns:
-
orAssign
- Parameters:
arg__1
-
-
inverted
- Returns:
-
resize
- Parameters:
size
-
-
setBit
- Parameters:
i
-
-
setBit
- Parameters:
i
-val
-
-
size
- Returns:
-
swap
- Parameters:
other
-
-
testBit
- Parameters:
i
-- Returns:
-
toInteger
- Parameters:
endianness
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
toggleBit
- Parameters:
i
-- Returns:
-
truncate
- Parameters:
pos
-
-
fromBits
- Parameters:
data
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QBitArray)
. -
toBitArray
-
fromBits
-
toString
See
operator<<(QDebug,
QBitArray) -
clone
Creates and returns a copy of this object.
-
fill
Overloaded function for
fill(boolean, long)
withasize = -1
. -
set
Deprecated.Useassign(io.qt.core.QBitArray)
instead. -
fromBits
Overloaded function for
fromBits(java.nio.ByteBuffer)
. -
fromBits
Overloaded function for
fromBits(java.nio.ByteBuffer)
.
-
assign(io.qt.core.QBitArray)
instead.