java.lang.Object
io.qt.QtObject
io.qt.core.QConstSpan<T>
io.qt.core.QSpan<T>
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<T>
Java wrapper for Qt class QSpan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean []
static byte []
asByteArray
(QSpan<@QtPrimitiveType Byte> span) static ByteBuffer
asByteBuffer
(QSpan<@QtPrimitiveType Byte> span) static char []
static CharBuffer
static double []
asDoubleArray
(QSpan<@QtPrimitiveType Double> span) static DoubleBuffer
static float []
asFloatArray
(QSpan<@QtPrimitiveType Float> span) static FloatBuffer
asFloatBuffer
(QSpan<@QtPrimitiveType Float> span) static int []
asIntArray
(QSpan<@QtPrimitiveType Integer> span) static IntBuffer
asIntBuffer
(QSpan<@QtPrimitiveType Integer> span) static long []
asLongArray
(QSpan<@QtPrimitiveType Long> span) static LongBuffer
asLongBuffer
(QSpan<@QtPrimitiveType Long> span) static <T> T []
asObjectArray
(QSpan<@QtPrimitiveType T> span) static short []
asShortArray
(QSpan<@QtPrimitiveType Short> span) static ShortBuffer
asShortBuffer
(QSpan<@QtPrimitiveType Short> span) clone()
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.first
(int n) last
(int n) final ListIterator<T>
static <T> QSpan<T>
of()
static <T> QSpan<T>
of
(T [] elements) static QSpan<@QtPrimitiveType Boolean>
ofBoolean
(boolean[] array) static QSpan<@QtPrimitiveType Byte>
ofBuffer
(ByteBuffer buffer) static QSpan<@QtPrimitiveType Character>
ofBuffer
(CharBuffer buffer) static QSpan<@QtPrimitiveType Double>
ofBuffer
(DoubleBuffer buffer) static QSpan<@QtPrimitiveType Float>
ofBuffer
(FloatBuffer buffer) static QSpan<@QtPrimitiveType Integer>
static QSpan<@QtPrimitiveType Long>
ofBuffer
(LongBuffer buffer) static QSpan<@QtPrimitiveType Short>
ofBuffer
(ShortBuffer buffer) static QSpan<@QtPrimitiveType Byte>
ofByte
(byte[] array) static QSpan<@QtPrimitiveType Byte>
ofByte
(QByteArray array) static QSpan<@QtPrimitiveType Character>
ofChar
(char[] array) static QSpan<@QtPrimitiveType Character>
static QSpan<@QtPrimitiveType Double>
ofDouble
(double[] array) static QSpan<@QtPrimitiveType Float>
ofFloat
(float[] array) static QSpan<@QtPrimitiveType Integer>
ofInt
(int[] array) static <T> QSpan<T>
static QSpan<@QtPrimitiveType Long>
ofLong
(long[] array) static QSpan<@QtPrimitiveType Short>
ofShort
(short[] array) static <T> QSpan<T>
static <T> QSpan<T>
final void
Changes the value at given positionfinal void
Changes the value at given positionsliced
(int offset) sliced
(int offset, int n) subspan
(int offset) subspan
(int offset, int n) Methods inherited from class io.qt.core.QConstSpan
asBooleanArray, asByteArray, asByteBuffer, asCharArray, asCharBuffer, asDoubleArray, asDoubleBuffer, asFloatArray, asFloatBuffer, asIntArray, asIntBuffer, asLongArray, asLongBuffer, asObjectArray, asShortArray, asShortBuffer, at, descendingIterator, elementType, equals, flush, get, hashCode, isBuffered, isConst, isEmpty, iterator, of, ofByte, ofChar, ofChar, ofList, size, size_bytes, toArray, toList, 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
-
Constructor Details
-
QSpan
public QSpan() -
QSpan
-
QSpan
-
-
Method Details
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofBuffer
-
ofByte
-
ofShort
-
ofInt
-
ofLong
-
ofChar
-
ofFloat
-
ofDouble
-
ofBoolean
-
ofList
-
of
-
of
-
ofTyped
-
ofTyped
-
ofByte
-
ofChar
-
asByteBuffer
-
asShortBuffer
-
asIntBuffer
-
asLongBuffer
-
asCharBuffer
-
asFloatBuffer
-
asDoubleBuffer
-
asByteArray
-
asShortArray
-
asIntArray
-
asLongArray
-
asCharArray
-
asFloatArray
-
asDoubleArray
-
asBooleanArray
-
asObjectArray
-
first
- Overrides:
first
in classQConstSpan<T>
-
last
- Overrides:
last
in classQConstSpan<T>
-
sliced
- Overrides:
sliced
in classQConstSpan<T>
-
sliced
- Overrides:
sliced
in classQConstSpan<T>
-
subspan
- Overrides:
subspan
in classQConstSpan<T>
-
subspan
- Overrides:
subspan
in classQConstSpan<T>
-
mutableIterator
- Throws:
IllegalAccessException
- if QSpan is read-only
-
replace
Changes the value at given position- Parameters:
index
-value
-
-
set
Changes the value at given position- Parameters:
index
-value
-
-
clone
Creates and returns a copy of this container.
- Overrides:
clone
in classQConstSpan<T>
-
constBegin
Provides a constant C++ iterator to the containers begin.- Returns:
- begin
-
constEnd
Provides a constant C++ iterator to the containers end.- Returns:
- end
-