Class QSpan<T>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean []static byte []asByteArray(QSpan<@QtPrimitiveType Byte> span) static ByteBufferasByteBuffer(QSpan<@QtPrimitiveType Byte> span) static char []static CharBufferstatic double []asDoubleArray(QSpan<@QtPrimitiveType Double> span) static DoubleBufferstatic float []asFloatArray(QSpan<@QtPrimitiveType Float> span) static FloatBufferasFloatBuffer(QSpan<@QtPrimitiveType Float> span) static int []asIntArray(QSpan<@QtPrimitiveType Integer> span) static IntBufferasIntBuffer(QSpan<@QtPrimitiveType Integer> span) static long []asLongArray(QSpan<@QtPrimitiveType Long> span) static LongBufferasLongBuffer(QSpan<@QtPrimitiveType Long> span) static <T> T []asObjectArray(QSpan<@QtPrimitiveType T> span) static short []asShortArray(QSpan<@QtPrimitiveType Short> span) static ShortBufferasShortBuffer(QSpan<@QtPrimitiveType Short> span) chopped(int n) 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 voidChanges the value at given positionfinal voidChanges 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, toStringMethods inherited from class io.qt.QtObject
dispose, isDisposedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
firstin classQConstSpan<T>
-
last
- Overrides:
lastin classQConstSpan<T>
-
chopped
- Overrides:
choppedin classQConstSpan<T>
-
sliced
- Overrides:
slicedin classQConstSpan<T>
-
sliced
- Overrides:
slicedin classQConstSpan<T>
-
subspan
- Overrides:
subspanin classQConstSpan<T>
-
subspan
- Overrides:
subspanin 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:
clonein 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
-