java.lang.Object
io.qt.QtObject
io.qt.core.QConstSpan<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
- Direct Known Subclasses:
QSpan
Java wrapper for Qt class QSpan
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean []
static byte []
static ByteBuffer
static char []
static CharBuffer
static double []
static DoubleBuffer
static float []
static FloatBuffer
static int []
static IntBuffer
static long []
static LongBuffer
static <T> T []
asObjectArray
(QConstSpan<@QtPrimitiveType T> span) static short []
static ShortBuffer
final T
at
(int index) Returns the value at given positionclone()
Creates and returns a copy of this container.protected final QSequentialConstIterator<T>
Provides a constant C++ iterator to the containers begin.protected final QSequentialConstIterator<T>
constEnd()
Provides a constant C++ iterator to the containers end.final QMetaType
Returns the value type of the QSpan.final boolean
Used to check if this object shares the same native counterpart with the other object, i.e.first
(int n) final void
flush()
final T
get
(int index) Returns the value at given positionint
hashCode()
final boolean
final boolean
isConst()
final boolean
isEmpty()
iterator()
last
(int n) static <T> QConstSpan<T>
of()
static <T> QConstSpan<T>
of
(T element0, T ... elements) static QConstSpan<@QtPrimitiveType Boolean>
ofBoolean
(boolean... array) static QConstSpan<@QtPrimitiveType Byte>
ofBuffer
(ByteBuffer buffer) static QConstSpan<@QtPrimitiveType Character>
ofBuffer
(CharBuffer buffer) static QConstSpan<@QtPrimitiveType Double>
ofBuffer
(DoubleBuffer buffer) static QConstSpan<@QtPrimitiveType Float>
ofBuffer
(FloatBuffer buffer) static QConstSpan<@QtPrimitiveType Integer>
static QConstSpan<@QtPrimitiveType Long>
ofBuffer
(LongBuffer buffer) static QConstSpan<@QtPrimitiveType Short>
ofBuffer
(ShortBuffer buffer) static QConstSpan<@QtPrimitiveType Byte>
ofByte
(byte... array) static QConstSpan<@QtPrimitiveType Byte>
ofByte
(QByteArray array) static QConstSpan<@QtPrimitiveType Byte>
ofByte
(QByteArrayView array) static QConstSpan<@QtPrimitiveType Character>
ofChar
(char... array) static QConstSpan<@QtPrimitiveType Character>
static QConstSpan<@QtPrimitiveType Character>
ofChar
(CharSequence string) static QConstSpan<@QtPrimitiveType Character>
static QConstSpan<@QtPrimitiveType Double>
ofDouble
(double... array) static QConstSpan<@QtPrimitiveType Float>
ofFloat
(float... array) static QConstSpan<@QtPrimitiveType Integer>
ofInt
(int... array) static <T> QConstSpan<T>
static <T> QConstSpan<T>
ofList
(Collection<T> list) static QConstSpan<@QtPrimitiveType Long>
ofLong
(long... array) static QConstSpan<@QtPrimitiveType Short>
ofShort
(short... array) static <T> QConstSpan<T>
static <T> QConstSpan<T>
final int
size()
final int
sliced
(int offset) sliced
(int offset, int n) subspan
(int offset) subspan
(int offset, int n) final T[]
toArray()
Returns all elements as arraytoList()
Returns all elements as arrayfinal String
toString()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofList
-
of
-
of
-
ofTyped
-
ofTyped
-
ofByte
-
ofShort
-
ofInt
-
ofLong
-
ofChar
-
ofFloat
-
ofDouble
-
ofBoolean
-
ofList
-
ofByte
-
ofByte
-
ofChar
-
ofChar
-
ofChar
-
asByteBuffer
-
asShortBuffer
-
asIntBuffer
-
asLongBuffer
-
asCharBuffer
-
asFloatBuffer
-
asDoubleBuffer
-
asByteArray
-
asShortArray
-
asIntArray
-
asLongArray
-
asCharArray
-
asFloatArray
-
asDoubleArray
-
asBooleanArray
-
asObjectArray
-
first
-
last
-
sliced
-
sliced
-
subspan
-
subspan
-
equals
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. -
iterator
-
descendingIterator
-
elementType
Returns the value type of the QSpan. -
isEmpty
- Returns:
true
if this container contains no elements
-
size
- Returns:
- the number of elements in this container
-
isBuffered
-
isConst
-
flush
-
size_bytes
-
toArray
Returns all elements as array- Returns:
- array
-
toList
Returns all elements as array- Returns:
- array
-
at
Returns the value at given position- Parameters:
index
-- Returns:
- value
-
get
Returns the value at given position- Parameters:
index
-- Returns:
- value
-
clone
Creates and returns a copy of this container.
-
toString
-
hashCode
public int hashCode() -
constBegin
Provides a constant C++ iterator to the containers begin.- Returns:
- begin
-
constEnd
Provides a constant C++ iterator to the containers end.- Returns:
- end
-