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
(int size) Overloaded constructor forQBitArray(int, boolean)
withval = false
.QBitArray
(int size, boolean val) -
Method Summary
Modifier and TypeMethodDescriptionfinal QBitArray
final void
final boolean
at
(int i) final ByteBuffer
bits()
final void
clear()
final void
clearBit
(int i) clone()
Creates and returns a copy of this object.final int
count()
final int
count
(boolean on) final void
detach()
SeeQBitArray::
detach() final boolean
boolean
final boolean
fill
(boolean val) Overloaded function forfill(boolean, int)
withsize = -1
.final boolean
fill
(boolean val, int size) final void
fill
(boolean val, int first, int 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
(int 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
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QBitArray&) final void
resize
(int size) final void
set
(int i, boolean value) SeeQBitArray::
operator[](int) final void
Deprecated.final void
setBit
(int i) final void
setBit
(int i, boolean val) final int
size()
final void
final boolean
testBit
(int i) final boolean[]
final boolean
toggleBit
(int i) toString()
Seeoperator<<(QDebug,
QBitArray) final void
truncate
(int pos) void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QBitArray) final QBitArray
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QBitArray
public QBitArray() -
QBitArray
- Parameters:
other
-
-
QBitArray
public QBitArray(int size, boolean val) - Parameters:
size
-val
-
-
QBitArray
public QBitArray(int size) Overloaded constructor for
QBitArray(int, boolean)
withval = false
.
-
-
Method Details
-
at
- Parameters:
i
-- Returns:
-
bits
- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
clear
-
clearBit
- Parameters:
i
-
-
count
- Returns:
-
count
- Parameters:
on
-- Returns:
-
detach
See
QBitArray::
detach() -
fill
- Parameters:
val
-size
-- Returns:
-
fill
- Parameters:
val
-first
-last
-
-
isDetached
See
QBitArray::
isDetached()const - Returns:
-
isEmpty
- Returns:
-
isNull
- Returns:
-
and
- Parameters:
arg__2
-- Returns:
-
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[](int) - Parameters:
i
-value
-
-
xor
- Parameters:
arg__2
-- Returns:
-
or
- Parameters:
arg__2
-- Returns:
-
inverted
- Returns:
-
resize
- Parameters:
size
-
-
setBit
- Parameters:
i
-
-
setBit
- Parameters:
i
-val
-
-
size
- Returns:
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 4.8.
-
testBit
- Parameters:
i
-- Returns:
-
toggleBit
- Parameters:
i
-- Returns:
-
truncate
- Parameters:
pos
-
-
fromBits
- Parameters:
data
-- Returns:
- Since:
- This function was introduced in Qt 5.11.
-
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, int)
withsize = -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.