Uses of Class
java.lang.Short
Packages that use 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.TYPETheClassinstance representing the primitive typeshort.Modifier and TypeMethodDescriptionstatic ShortDecodes aStringinto aShort.static ShortShort.valueOf(short s) Returns aShortinstance representing the specifiedshortvalue.static ShortReturns aShortobject holding the value given by the specifiedString.static ShortReturns aShortobject holding the value extracted from the specifiedStringwhen parsed with the radix given by the second argument.Modifier and TypeMethodDescriptionShort.describeConstable()Returns anOptionalcontaining the nominal descriptor for this instance. -
Uses of Short in javax.management.openmbean
Fields in javax.management.openmbean with type parameters of type ShortModifier and TypeFieldDescriptionstatic final SimpleType<Short> SimpleType.SHORTTheSimpleTypeinstance describing values whose Java class name isjava.lang.Short. -
Uses of Short in jdk.incubator.vector
Fields in jdk.incubator.vector with type parameters of type ShortModifier and TypeFieldDescriptionstatic final VectorOperators.Conversion<Byte, Short> VectorOperators.B2SConvertbyteValto(short)byteVal.static final VectorOperators.Conversion<Double, Short> VectorOperators.D2SConvertdoubleValto(short)doubleVal.static final VectorOperators.Conversion<Float, Short> VectorOperators.F2SConvertfloatValto(short)floatVal.static final VectorOperators.Conversion<Integer, Short> VectorOperators.I2SConvertintValto(short)intVal.static final VectorOperators.Conversion<Long, Short> VectorOperators.L2SConvertlongValto(short)longVal.static final VectorOperators.Conversion<Short, Byte> VectorOperators.S2BConvertshortValto(byte)shortVal.static final VectorOperators.Conversion<Short, Double> VectorOperators.S2DConvertshortValto(double)shortVal.static final VectorOperators.Conversion<Short, Float> VectorOperators.S2FConvertshortValto(float)shortVal.static final VectorOperators.Conversion<Short, Integer> VectorOperators.S2IConvertshortValto(int)shortVal.static final VectorOperators.Conversion<Short, Long> VectorOperators.S2LConvertshortValto(long)shortVal.static final VectorSpecies<Short> ShortVector.SPECIES_128Species representingShortVectors ofVectorShape.S_128_BIT.static final VectorSpecies<Short> ShortVector.SPECIES_256Species representingShortVectors ofVectorShape.S_256_BIT.static final VectorSpecies<Short> ShortVector.SPECIES_512Species representingShortVectors ofVectorShape.S_512_BIT.static final VectorSpecies<Short> ShortVector.SPECIES_64Species representingShortVectors ofVectorShape.S_64_BIT.static final VectorSpecies<Short> ShortVector.SPECIES_MAXSpecies representingShortVectors ofVectorShape.S_Max_BIT.static final VectorSpecies<Short> ShortVector.SPECIES_PREFERREDPreferred species forShortVectors.static final VectorOperators.Conversion<Byte, Short> VectorOperators.ZERO_EXTEND_B2SZero-extendbyteValtoshort.static final VectorOperators.Conversion<Short, Integer> VectorOperators.ZERO_EXTEND_S2IZero-extendshortValtoint.static final VectorOperators.Conversion<Short, Long> VectorOperators.ZERO_EXTEND_S2LZero-extendshortValtolong.Methods in jdk.incubator.vector that return types with arguments of type ShortModifier 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.final VectorMask<Short> 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.final VectorMask<Short> 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.final VectorMask<Short> ShortVector.eq(short e) Tests if this vector is equal to an input scalar.final VectorMask<Short> Tests if this vector is equal to another input vector.final VectorMask<Short> ShortVector.lt(short e) Tests if this vector is less than an input scalar.final VectorMask<Short> 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.abstract VectorMask<Short> ShortVector.test(VectorOperators.Test op, VectorMask<Short> m) Test selected lanes of this vector, according to the given operation.Method parameters in jdk.incubator.vector with type arguments of type ShortModifier and TypeMethodDescriptionfinal ShortVectorShortVector.add(short e, VectorMask<Short> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.final ShortVectorAdds this vector to a second input vector.final ShortVectorShortVector.add(Vector<Short> v, VectorMask<Short> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final ShortVectorShortVector.add(Vector<Short> v, VectorMask<Short> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.final ShortVectorComputes the bitwise logical conjunction (&) of this vector and a second input vector.final ShortVectorShortVector.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.final ShortVectorShortVector.bitwiseBlend(Vector<Short> bits, short mask) Blends together the bits of two vectors under the control of a scalar, which supplies mask bits.final ShortVectorShortVector.bitwiseBlend(Vector<Short> bits, Vector<Short> mask) Blends together the bits of two vectors under the control of a third, which supplies mask bits.final ShortVectorShortVector.blend(long e, VectorMask<Short> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.final ShortVectorShortVector.blend(short e, VectorMask<Short> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstract ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorShortVector.broadcast(VectorSpecies<Short> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee.static ShortVectorShortVector.broadcast(VectorSpecies<Short> species, short e) Returns a vector of the given species where all lane elements are set to the primitive valuee.final VectorMask<Short> 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.final VectorMask<Short> 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.abstract ShortVectorShortVector.compress(VectorMask<Short> m) Compresses the lane elements of this vector selecting lanes under the control of a specific mask.final ShortVectorShortVector.div(short e, VectorMask<Short> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final ShortVectorDivides this vector by a second input vector.final ShortVectorShortVector.div(Vector<Short> v, VectorMask<Short> m) Divides this vector by a second input vector under the control of a mask.final ShortVectorShortVector.div(Vector<Short> v, VectorMask<Short> m) Divides this vector by a second input vector under the control of a mask.final VectorMask<Short> Tests if this vector is equal to another input vector.abstract ShortVectorShortVector.expand(VectorMask<Short> m) Expands the lane elements of this vector under the control of a specific mask.static ShortVectorShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset) Loads a vector from an array of typeshort[]starting at an offset.static ShortVectorShortVector.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 fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.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 fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.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 fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset) Loads a vector from an array of typechar[]starting at an offset.static ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typechar[], using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m) Gathers a new vector composed of elements from an array of typechar[], under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m) Gathers a new vector composed of elements from an array of typechar[], under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.static ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset, VectorMask<Short> m) Loads a vector from an array of typechar[]starting at an offset and using a mask.static ShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset, VectorMask<Short> m) Loads a vector from an array of typechar[]starting at an offset and using a mask.static ShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.static ShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Short> m) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.static ShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species, MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Short> m) Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.final voidShortVector.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 fixedoffsetto a series of secondary offsets from an index map.final voidShortVector.intoArray(short[] a, int offset, VectorMask<Short> m) Stores this vector into an array of typeshort[]starting at offset and using a mask.final voidShortVector.intoCharArray(char[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m) Scatters this vector into an array of typechar[], under the control of a mask, and using indexes obtained by adding a fixedoffsetto a series of secondary offsets from an index map.final voidShortVector.intoCharArray(char[] a, int offset, VectorMask<Short> m) Stores this vector into an array of typechar[]starting at offset and using a mask.final voidShortVector.intoMemorySegment(MemorySegmentPREVIEW ms, long offset, ByteOrder bo, VectorMask<Short> m) Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.final ShortVectorShortVector.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.final ShortVectorShortVector.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 ShortVectorShortVector.lanewise(VectorOperators.Binary op, Vector<Short> v) Combines the corresponding lane values of this vector with those of a second input vector.abstract ShortVectorShortVector.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.abstract ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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.final ShortVectorShortVector.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 ShortVectorCombines the corresponding lane values of this vector with the lanes of a second and a third input vector.abstract ShortVectorShortVector.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.abstract ShortVectorShortVector.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.abstract ShortVectorShortVector.lanewise(VectorOperators.Unary op, VectorMask<Short> m) Operates on the lane values of this vector, with selection of lane elements controlled by a mask.final VectorMask<Short> Tests if this vector is less than another input vector.final ShortVectorComputes the larger of this vector and a second input vector.final ShortVectorComputes the smaller of this vector and a second input vector.final ShortVectorShortVector.mul(short e, VectorMask<Short> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.final ShortVectorMultiplies this vector by a second input vector.final ShortVectorShortVector.mul(Vector<Short> v, VectorMask<Short> m) Multiplies this vector by a second input vector under the control of a mask.final ShortVectorShortVector.mul(Vector<Short> v, VectorMask<Short> m) Multiplies this vector by a second input vector under the control of a mask.final ShortVectorComputes the bitwise logical disjunction (|) of this vector and a second input vector.abstract ShortVectorShortVector.rearrange(VectorShuffle<Short> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstract ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorShortVector.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 shortShortVector.reduceLanes(VectorOperators.Associative op, VectorMask<Short> m) Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstract ShortVectorShortVector.selectFrom(Vector<Short> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv.abstract ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final ShortVectorShortVector.slice(int origin, Vector<Short> w, VectorMask<Short> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final ShortVectorShortVector.slice(int origin, Vector<Short> w, VectorMask<Short> m) Slices a segment of adjacent lanes under the control of a mask, starting at a givenoriginlane in the current vector, and continuing (as needed) into an immediately following vector.final ShortVectorShortVector.sub(short e, VectorMask<Short> m) Subtracts an input scalar from this vector under the control of a mask.final ShortVectorSubtracts a second input vector from this vector.final ShortVectorShortVector.sub(Vector<Short> v, VectorMask<Short> m) Subtracts a second input vector from this vector under the control of a mask.final ShortVectorShortVector.sub(Vector<Short> v, VectorMask<Short> m) Subtracts a second input vector from this vector under the control of a mask.abstract VectorMask<Short> ShortVector.test(VectorOperators.Test op, VectorMask<Short> m) Test selected lanes of this vector, according to the given operation.abstract ShortVectorReverses 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 ShortVectorShortVector.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 ShortVectorShortVector.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 ShortVectorShortVector.zero(VectorSpecies<Short> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.