Uses of Class
java.lang.Short
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides the open data types and Open MBean descriptor classes.
Incubating Feature. Will be removed in a future release.
-
Uses of Short in java.lang
Modifier and TypeFieldDescriptionShort.TYPE
TheClass
instance representing the primitive typeshort
.Modifier and TypeMethodDescriptionstatic Short
Decodes aString
into aShort
.static Short
Short.valueOf(short s)
Returns aShort
instance representing the specifiedshort
value.static Short
Returns aShort
object holding the value given by the specifiedString
.static Short
Returns aShort
object holding the value extracted from the specifiedString
when parsed with the radix given by the second argument.Modifier and TypeMethodDescriptionShort.describeConstable()
Returns anOptional
containing the nominal descriptor for this instance. -
Uses of Short in javax.management.openmbean
Modifier and TypeFieldDescriptionstatic SimpleType<Short>
SimpleType.SHORT
TheSimpleType
instance describing values whose Java class name isjava.lang.Short
. -
Uses of Short in jdk.incubator.vector
Modifier and TypeFieldDescriptionstatic VectorOperators.Conversion<Byte,Short>
VectorOperators.B2S
ConvertbyteVal
to(short)byteVal
.static VectorOperators.Conversion<Double,Short>
VectorOperators.D2S
ConvertdoubleVal
to(short)doubleVal
.static VectorOperators.Conversion<Float,Short>
VectorOperators.F2S
ConvertfloatVal
to(short)floatVal
.static VectorOperators.Conversion<Integer,Short>
VectorOperators.I2S
ConvertintVal
to(short)intVal
.static VectorOperators.Conversion<Long,Short>
VectorOperators.L2S
ConvertlongVal
to(short)longVal
.static VectorOperators.Conversion<Short,Byte>
VectorOperators.S2B
ConvertshortVal
to(byte)shortVal
.static VectorOperators.Conversion<Short,Double>
VectorOperators.S2D
ConvertshortVal
to(double)shortVal
.static VectorOperators.Conversion<Short,Float>
VectorOperators.S2F
ConvertshortVal
to(float)shortVal
.static VectorOperators.Conversion<Short,Integer>
VectorOperators.S2I
ConvertshortVal
to(int)shortVal
.static VectorOperators.Conversion<Short,Long>
VectorOperators.S2L
ConvertshortVal
to(long)shortVal
.static VectorSpecies<Short>
ShortVector.SPECIES_128
Species representingShortVector
s ofVectorShape.S_128_BIT
.static VectorSpecies<Short>
ShortVector.SPECIES_256
Species representingShortVector
s ofVectorShape.S_256_BIT
.static VectorSpecies<Short>
ShortVector.SPECIES_512
Species representingShortVector
s ofVectorShape.S_512_BIT
.static VectorSpecies<Short>
ShortVector.SPECIES_64
Species representingShortVector
s ofVectorShape.S_64_BIT
.static VectorSpecies<Short>
ShortVector.SPECIES_MAX
Species representingShortVector
s ofVectorShape.S_Max_BIT
.static VectorSpecies<Short>
ShortVector.SPECIES_PREFERRED
Preferred species forShortVector
s.static VectorOperators.Conversion<Byte,Short>
VectorOperators.ZERO_EXTEND_B2S
Zero-extendbyteVal
toshort
.static VectorOperators.Conversion<Short,Integer>
VectorOperators.ZERO_EXTEND_S2I
Zero-extendshortVal
toint
.static VectorOperators.Conversion<Short,Long>
VectorOperators.ZERO_EXTEND_S2L
Zero-extendshortVal
tolong
.Modifier and TypeMethodDescriptionabstract VectorMask<Short>
ShortVector.compare(VectorOperators.Comparison op, long e)
Tests this vector by comparing it with an input scalar, according to the given comparison operation.ShortVector.compare(VectorOperators.Comparison op, long e, VectorMask<Short> m)
Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Short>
ShortVector.compare(VectorOperators.Comparison op, short e)
Tests this vector by comparing it with an input scalar, according to the given comparison operation.ShortVector.compare(VectorOperators.Comparison op, short e, VectorMask<Short> m)
Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Short>
ShortVector.compare(VectorOperators.Comparison op, Vector<Short> v)
Tests this vector by comparing it with another input vector, according to the given comparison operation.ShortVector.compare(VectorOperators.Comparison op, Vector<Short> v, VectorMask<Short> m)
Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.ShortVector.eq(short e)
Tests if this vector is equal to an input scalar.Tests if this vector is equal to another input vector.ShortVector.lt(short e)
Tests if this vector is less than an input scalar.Tests if this vector is less than another input vector.abstract VectorMask<Short>
ShortVector.test(VectorOperators.Test op)
Tests the lanes of this vector according to the given operation.ShortVector.test(VectorOperators.Test op, VectorMask<Short> m)
Test selected lanes of this vector, according to the given operation.Modifier and TypeMethodDescriptionShortVector.add(short e, VectorMask<Short> m)
Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.Adds this vector to a second input vector.ShortVector.add(Vector<Short> v, VectorMask<Short> m)
Adds this vector to a second input vector, selecting lanes under the control of a mask.ShortVector.add(Vector<Short> v, VectorMask<Short> m)
Adds this vector to a second input vector, selecting lanes under the control of a mask.Computes the bitwise logical conjunction (&
) of this vector and a second input vector.ShortVector.bitwiseBlend(short bits, Vector<Short> mask)
Blends together the bits of a vector and a scalar under the control of another vector, which supplies mask bits.ShortVector.bitwiseBlend(Vector<Short> bits, short mask)
Blends together the bits of two vectors under the control of a scalar, which supplies mask bits.ShortVector.bitwiseBlend(Vector<Short> bits, Vector<Short> mask)
Blends together the bits of two vectors under the control of a third, which supplies mask bits.ShortVector.blend(long e, VectorMask<Short> m)
Replaces selected lanes of this vector with a scalar value under the control of a mask.ShortVector.blend(short e, VectorMask<Short> m)
Replaces selected lanes of this vector with a scalar value under the control of a mask.abstract ShortVector
ShortVector.blend(Vector<Short> v, VectorMask<Short> m)
Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.abstract ShortVector
ShortVector.blend(Vector<Short> v, VectorMask<Short> m)
Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.static ShortVector
ShortVector.broadcast(VectorSpecies<Short> species, long e)
Returns a vector of the given species where all lane elements are set to the primitive valuee
.static ShortVector
ShortVector.broadcast(VectorSpecies<Short> species, short e)
Returns a vector of the given species where all lane elements are set to the primitive valuee
.ShortVector.compare(VectorOperators.Comparison op, long e, VectorMask<Short> m)
Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.ShortVector.compare(VectorOperators.Comparison op, short e, VectorMask<Short> m)
Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstract VectorMask<Short>
ShortVector.compare(VectorOperators.Comparison op, Vector<Short> v)
Tests this vector by comparing it with another input vector, according to the given comparison operation.ShortVector.compare(VectorOperators.Comparison op, Vector<Short> v, VectorMask<Short> m)
Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.ShortVector.compare(VectorOperators.Comparison op, Vector<Short> v, VectorMask<Short> m)
Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.ShortVector.div(short e, VectorMask<Short> m)
Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.Divides this vector by a second input vector.ShortVector.div(Vector<Short> v, VectorMask<Short> m)
Divides this vector by a second input vector under the control of a mask.ShortVector.div(Vector<Short> v, VectorMask<Short> m)
Divides this vector by a second input vector under the control of a mask.Tests if this vector is equal to another input vector.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset)
Loads a vector from an array of typeshort[]
starting at an offset.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset)
Gathers a new vector composed of elements from an array of typeshort[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m)
Gathers a new vector composed of elements from an array of typeshort[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m)
Gathers a new vector composed of elements from an array of typeshort[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, VectorMask<Short> m)
Loads a vector from an array of typeshort[]
starting at an offset and using a mask.static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, VectorMask<Short> m)
Loads a vector from an array of typeshort[]
starting at an offset and using a mask.static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte array starting at an offset and using a mask.static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte array starting at an offset and using a mask.static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.void
ShortVector.intoArray(short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m)
Scatters this vector into an array of typeshort[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from an index map.void
ShortVector.intoArray(short[] a, int offset, VectorMask<Short> m)
Stores this vector into an array ofshort
starting at offset and using a mask.void
ShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
ShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.ShortVector.lanewise(VectorOperators.Binary op, long e, VectorMask<Short> m)
Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Binary op, short e, VectorMask<Short> m)
Combines the lane values of this vector with the value of a broadcast scalar, with selection of lane elements controlled by a mask.abstract ShortVector
ShortVector.lanewise(VectorOperators.Binary op, Vector<Short> v)
Combines the corresponding lane values of this vector with those of a second input vector.ShortVector.lanewise(VectorOperators.Binary op, Vector<Short> v, VectorMask<Short> m)
Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Binary op, Vector<Short> v, VectorMask<Short> m)
Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, short e1, short e2, VectorMask<Short> m)
Combines the lane values of this vector with the values of two broadcast scalars, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, short e1, Vector<Short> v2)
Combines the lane values of this vector with the values of another vector and a broadcast scalar.ShortVector.lanewise(VectorOperators.Ternary op, short e1, Vector<Short> v2, VectorMask<Short> m)
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, short e1, Vector<Short> v2, VectorMask<Short> m)
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, Vector<Short> v1, short e2)
Combines the lane values of this vector with the values of another vector and a broadcast scalar.ShortVector.lanewise(VectorOperators.Ternary op, Vector<Short> v1, short e2, VectorMask<Short> m)
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, Vector<Short> v1, short e2, VectorMask<Short> m)
Combines the lane values of this vector with the values of another vector and a broadcast scalar, with selection of lane elements controlled by a mask.abstract ShortVector
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.ShortVector.lanewise(VectorOperators.Ternary op, Vector<Short> v1, Vector<Short> v2, VectorMask<Short> m)
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Ternary op, Vector<Short> v1, Vector<Short> v2, VectorMask<Short> m)
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.ShortVector.lanewise(VectorOperators.Unary op, VectorMask<Short> m)
Operates on the lane values of this vector, with selection of lane elements controlled by a mask.Tests if this vector is less than another input vector.Computes the larger of this vector and a second input vector.Computes the smaller of this vector and a second input vector.ShortVector.mul(short e, VectorMask<Short> m)
Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.Multiplies this vector by a second input vector.ShortVector.mul(Vector<Short> v, VectorMask<Short> m)
Multiplies this vector by a second input vector under the control of a mask.ShortVector.mul(Vector<Short> v, VectorMask<Short> m)
Multiplies this vector by a second input vector under the control of a mask.Computes the bitwise logical disjunction (|
) of this vector and a second input vector.abstract ShortVector
ShortVector.rearrange(VectorShuffle<Short> m)
Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstract ShortVector
ShortVector.rearrange(VectorShuffle<Short> s, Vector<Short> v)
Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.abstract ShortVector
ShortVector.rearrange(VectorShuffle<Short> s, Vector<Short> v)
Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.abstract ShortVector
ShortVector.rearrange(VectorShuffle<Short> s, VectorMask<Short> m)
Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract ShortVector
ShortVector.rearrange(VectorShuffle<Short> s, VectorMask<Short> m)
Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract short
ShortVector.reduceLanes(VectorOperators.Associative op, VectorMask<Short> m)
Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstract ShortVector
ShortVector.selectFrom(Vector<Short> v)
Using index values stored in the lanes of this vector, assemble values stored in second vectorv
.abstract ShortVector
ShortVector.selectFrom(Vector<Short> s, VectorMask<Short> m)
Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract ShortVector
ShortVector.selectFrom(Vector<Short> s, VectorMask<Short> m)
Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstract ShortVector
Slices a segment of adjacent lanes, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.ShortVector.slice(int origin, Vector<Short> w, VectorMask<Short> m)
Slices a segment of adjacent lanes under the control of a mask, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.ShortVector.slice(int origin, Vector<Short> w, VectorMask<Short> m)
Slices a segment of adjacent lanes under the control of a mask, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.ShortVector.sub(short e, VectorMask<Short> m)
Subtracts an input scalar from this vector under the control of a mask.Subtracts a second input vector from this vector.ShortVector.sub(Vector<Short> v, VectorMask<Short> m)
Subtracts a second input vector from this vector under the control of a mask.ShortVector.sub(Vector<Short> v, VectorMask<Short> m)
Subtracts a second input vector from this vector under the control of a mask.ShortVector.test(VectorOperators.Test op, VectorMask<Short> m)
Test selected lanes of this vector, according to the given operation.abstract ShortVector
Reverses a slice(), inserting the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.abstract ShortVector
ShortVector.unslice(int origin, Vector<Short> w, int part, VectorMask<Short> m)
Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.abstract ShortVector
ShortVector.unslice(int origin, Vector<Short> w, int part, VectorMask<Short> m)
Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequentslice()
operation.static ShortVector
ShortVector.zero(VectorSpecies<Short> species)
Returns a vector of the given species where all lane elements are set to zero, the default primitive value.