Uses of Class
java.lang.Short
Packages that useShort
Package
Description
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides classfile parsing, generation, and transformation library.
Provides the open data types and Open MBean descriptor classes.
Incubating Feature. Will be removed in a future release.
Uses ofShort injava.lang
Modifier and TypeClassDescriptionfinal classModifier and TypeMethodDescriptionstaticShortDecodes aStringinto aShort.staticShortShort.valueOf(short s) Returns aShortinstance representing the specifiedshortvalue.staticShortReturns aShortobject holding thevalue given by the specifiedString.staticShortReturns aShortobject holding the valueextracted from the specifiedStringwhen parsedwith the radix given by the second argument.Modifier and TypeMethodDescriptionShort.describeConstable()Returns anOptionalcontaining the nominal descriptor for thisinstance.Uses ofShort injava.lang.classfile
Methods injava.lang.classfile that returnShortModifier and TypeMethodDescriptiondefaultShortAnnotationValue.OfShort.resolvedValue()Returns the resolved short value.Uses ofShort injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeShortModifier and TypeFieldDescriptionstatic finalSimpleType<Short> SimpleType.SHORTTheSimpleTypeinstance describing values whoseJava class name isjava.lang.Short.Uses ofShort injdk.incubator.vector
Subclasses with type arguments of typeShort injdk.incubator.vectorModifier and TypeClassDescriptionclassA specializedVectorrepresenting an ordered immutable sequence ofshortvalues.Fields injdk.incubator.vector with type parameters of typeShortModifier and TypeFieldDescriptionstatic finalVectorOperators.Conversion<Byte, Short> VectorOperators.B2SConvertbyteValto(short)byteVal.static finalVectorOperators.Conversion<Double, Short> VectorOperators.D2SConvertdoubleValto(short)doubleVal.static finalVectorOperators.Conversion<Float, Short> VectorOperators.F2SConvertfloatValto(short)floatVal.static finalVectorOperators.Conversion<Integer, Short> VectorOperators.I2SConvertintValto(short)intVal.static finalVectorOperators.Conversion<Long, Short> VectorOperators.L2SConvertlongValto(short)longVal.static finalVectorOperators.Conversion<Short, Byte> VectorOperators.S2BConvertshortValto(byte)shortVal.static finalVectorOperators.Conversion<Short, Double> VectorOperators.S2DConvertshortValto(double)shortVal.static finalVectorOperators.Conversion<Short, Float> VectorOperators.S2FConvertshortValto(float)shortVal.static finalVectorOperators.Conversion<Short, Integer> VectorOperators.S2IConvertshortValto(int)shortVal.static finalVectorOperators.Conversion<Short, Long> VectorOperators.S2LConvertshortValto(long)shortVal.static finalVectorSpecies<Short> ShortVector.SPECIES_128Species representingShortVectors ofVectorShape.S_128_BIT.static finalVectorSpecies<Short> ShortVector.SPECIES_256Species representingShortVectors ofVectorShape.S_256_BIT.static finalVectorSpecies<Short> ShortVector.SPECIES_512Species representingShortVectors ofVectorShape.S_512_BIT.static finalVectorSpecies<Short> ShortVector.SPECIES_64Species representingShortVectors ofVectorShape.S_64_BIT.static finalVectorSpecies<Short> ShortVector.SPECIES_MAXSpecies representingShortVectors ofVectorShape.S_Max_BIT.static finalVectorSpecies<Short> ShortVector.SPECIES_PREFERREDPreferred species forShortVectors.static finalVectorOperators.Conversion<Byte, Short> VectorOperators.ZERO_EXTEND_B2SZero-extendbyteValtoshort.static finalVectorOperators.Conversion<Short, Integer> VectorOperators.ZERO_EXTEND_S2IZero-extendshortValtoint.static finalVectorOperators.Conversion<Short, Long> VectorOperators.ZERO_EXTEND_S2LZero-extendshortValtolong.Methods injdk.incubator.vector that return types with arguments of typeShortModifier and TypeMethodDescriptionabstractVectorMask<Short> ShortVector.compare(VectorOperators.Comparison op, long e) Tests this vector by comparing it with an input scalar,according to the given comparison operation.finalVectorMask<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.abstractVectorMask<Short> ShortVector.compare(VectorOperators.Comparison op, short e) Tests this vector by comparing it with an input scalar,according to the given comparison operation.finalVectorMask<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.abstractVectorMask<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.finalVectorMask<Short> ShortVector.eq(short e) Tests if this vector is equal to an input scalar.finalVectorMask<Short> Tests if this vector is equal to another input vector.finalVectorMask<Short> ShortVector.lt(short e) Tests if this vector is less than an input scalar.finalVectorMask<Short> Tests if this vector is less than another input vector.abstractVectorMask<Short> ShortVector.test(VectorOperators.Test op) Tests the lanes of this vectoraccording to the given operation.abstractVectorMask<Short> ShortVector.test(VectorOperators.Test op,VectorMask<Short> m) Test selected lanes of this vector,according to the given operation.Method parameters injdk.incubator.vector with type arguments of typeShortModifier and TypeMethodDescriptionfinalShortVectorShortVector.add(short e,VectorMask<Short> m) Adds this vector to the broadcast of an input scalar,selecting lane elements controlled by a mask.finalShortVectorAdds this vector to a second input vector.finalShortVectorShortVector.add(Vector<Short> v,VectorMask<Short> m) Adds this vector to a second input vector, selecting lanesunder the control of a mask.finalShortVectorShortVector.add(Vector<Short> v,VectorMask<Short> m) Adds this vector to a second input vector, selecting lanesunder the control of a mask.finalShortVectorComputes the bitwise logical conjunction (&)of this vector and a second input vector.finalShortVectorShortVector.bitwiseBlend(short bits,Vector<Short> mask) Blends together the bits of a vector and a scalar underthe control of another vector, which supplies mask bits.finalShortVectorShortVector.bitwiseBlend(Vector<Short> bits, short mask) Blends together the bits of two vectors underthe control of a scalar, which supplies mask bits.finalShortVectorShortVector.bitwiseBlend(Vector<Short> bits,Vector<Short> mask) Blends together the bits of two vectors underthe control of a third, which supplies mask bits.finalShortVectorShortVector.blend(long e,VectorMask<Short> m) Replaces selected lanes of this vector witha scalar valueunder the control of a mask.finalShortVectorShortVector.blend(short e,VectorMask<Short> m) Replaces selected lanes of this vector witha scalar valueunder the control of a mask.abstractShortVectorShortVector.blend(Vector<Short> v,VectorMask<Short> m) Replaces selected lanes of this vector withcorresponding lanes from a second input vectorunder the control of a mask.abstractShortVectorShortVector.blend(Vector<Short> v,VectorMask<Short> m) Replaces selected lanes of this vector withcorresponding lanes from a second input vectorunder the control of a mask.staticShortVectorShortVector.broadcast(VectorSpecies<Short> species, long e) Returns a vector of the given specieswhere all lane elements are set tothe primitive valuee.staticShortVectorShortVector.broadcast(VectorSpecies<Short> species, short e) Returns a vector of the given specieswhere all lane elements are set tothe primitive valuee.finalVectorMask<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.finalVectorMask<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.abstractVectorMask<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.abstractShortVectorShortVector.compress(VectorMask<Short> m) Compresses the lane elements of this vector selecting lanesunder the control of a specific mask.finalShortVectorShortVector.div(short e,VectorMask<Short> m) Divides this vector by the broadcast of an input scalar,selecting lane elements controlled by a mask.finalShortVectorDivides this vector by a second input vector.finalShortVectorShortVector.div(Vector<Short> v,VectorMask<Short> m) Divides this vector by a second input vectorunder the control of a mask.finalShortVectorShortVector.div(Vector<Short> v,VectorMask<Short> m) Divides this vector by a second input vectorunder the control of a mask.finalVectorMask<Short> Tests if this vector is equal to another input vector.abstractShortVectorShortVector.expand(VectorMask<Short> m) Expands the lane elements of this vectorunder the control of a specific mask.staticShortVectorShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset) Loads a vector from an array of typeshort[]starting at an offset.staticShortVectorShortVector.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 aseries of secondary offsets from anindex map.staticShortVectorShortVector.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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex map.staticShortVectorShortVector.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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex map.staticShortVectorShortVector.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.staticShortVectorShortVector.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.staticShortVectorShortVector.fromCharArray(VectorSpecies<Short> species, char[] a, int offset) Loads a vector from an array of typechar[]starting at an offset.staticShortVectorShortVector.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 aseries of secondary offsets from anindex map.staticShortVectorShortVector.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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex map.staticShortVectorShortVector.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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex map.staticShortVectorShortVector.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.staticShortVectorShortVector.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.staticShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species,MemorySegment ms, long offset,ByteOrder bo) Loads a vector from amemory segmentstarting at an offset into the memory segment.staticShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Short> m) Loads a vector from amemory segmentstarting at an offset into the memory segmentand using a mask.staticShortVectorShortVector.fromMemorySegment(VectorSpecies<Short> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Short> m) Loads a vector from amemory segmentstarting at an offset into the memory segmentand 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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex 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, andusing indexes obtained by adding a fixedoffsetto aseries of secondary offsets from anindex 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(MemorySegment ms, long offset,ByteOrder bo,VectorMask<Short> m) Stores this vector into amemory segmentstarting at an offset using explicit byte order and a mask.finalShortVectorShortVector.lanewise(VectorOperators.Binary op, long e,VectorMask<Short> m) Combines the corresponding lane values of this vectorwith those of a second input vector,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Binary op, short e,VectorMask<Short> m) Combines the lane values of this vectorwith the value of a broadcast scalar,with selection of lane elements controlled by a mask.abstractShortVectorShortVector.lanewise(VectorOperators.Binary op,Vector<Short> v) Combines the corresponding lane values of this vectorwith those of a second input vector.abstractShortVectorShortVector.lanewise(VectorOperators.Binary op,Vector<Short> v,VectorMask<Short> m) Combines the corresponding lane values of this vectorwith those of a second input vector,with selection of lane elements controlled by a mask.abstractShortVectorShortVector.lanewise(VectorOperators.Binary op,Vector<Short> v,VectorMask<Short> m) Combines the corresponding lane values of this vectorwith those of a second input vector,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op, short e1, short e2,VectorMask<Short> m) Combines the lane values of this vectorwith the values of two broadcast scalars,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op, short e1,Vector<Short> v2) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op, short e1,Vector<Short> v2,VectorMask<Short> m) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op, short e1,Vector<Short> v2,VectorMask<Short> m) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op,Vector<Short> v1, short e2) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op,Vector<Short> v1, short e2,VectorMask<Short> m) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar,with selection of lane elements controlled by a mask.finalShortVectorShortVector.lanewise(VectorOperators.Ternary op,Vector<Short> v1, short e2,VectorMask<Short> m) Combines the lane values of this vectorwith the values of another vector and a broadcast scalar,with selection of lane elements controlled by a mask.abstractShortVectorCombines the corresponding lane values of this vectorwith the lanes of a second and a third input vector.abstractShortVectorShortVector.lanewise(VectorOperators.Ternary op,Vector<Short> v1,Vector<Short> v2,VectorMask<Short> m) Combines the corresponding lane values of this vectorwith the lanes of a second and a third input vector,with selection of lane elements controlled by a mask.abstractShortVectorShortVector.lanewise(VectorOperators.Ternary op,Vector<Short> v1,Vector<Short> v2,VectorMask<Short> m) Combines the corresponding lane values of this vectorwith the lanes of a second and a third input vector,with selection of lane elements controlled by a mask.abstractShortVectorShortVector.lanewise(VectorOperators.Unary op,VectorMask<Short> m) Operates on the lane values of this vector,with selection of lane elements controlled by a mask.finalVectorMask<Short> Tests if this vector is less than another input vector.finalShortVectorComputes the larger of this vector and a second input vector.finalShortVectorComputes the smaller of this vector and a second input vector.finalShortVectorShortVector.mul(short e,VectorMask<Short> m) Multiplies this vector by the broadcast of an input scalar,selecting lane elements controlled by a mask.finalShortVectorMultiplies this vector by a second input vector.finalShortVectorShortVector.mul(Vector<Short> v,VectorMask<Short> m) Multiplies this vector by a second input vectorunder the control of a mask.finalShortVectorShortVector.mul(Vector<Short> v,VectorMask<Short> m) Multiplies this vector by a second input vectorunder the control of a mask.finalShortVectorComputes the bitwise logical disjunction (|)of this vector and a second input vector.abstractShortVectorShortVector.rearrange(VectorShuffle<Short> shuffle) Rearranges the lane elements of this vector, selecting lanesunder the control of a specific shuffle.abstractShortVectorShortVector.rearrange(VectorShuffle<Short> s,Vector<Short> v) Rearranges the lane elements of two vectors, selecting lanesunder the control of a specific shuffle, using both normal andexceptional indexes in the shuffle to steer data.abstractShortVectorShortVector.rearrange(VectorShuffle<Short> s,Vector<Short> v) Rearranges the lane elements of two vectors, selecting lanesunder the control of a specific shuffle, using both normal andexceptional indexes in the shuffle to steer data.abstractShortVectorShortVector.rearrange(VectorShuffle<Short> s,VectorMask<Short> m) Rearranges the lane elements of this vector, selecting lanesunder the control of a specific shuffle and a mask.abstractShortVectorShortVector.rearrange(VectorShuffle<Short> s,VectorMask<Short> m) Rearranges the lane elements of this vector, selecting lanesunder 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.abstractShortVectorShortVector.selectFrom(Vector<Short> v) Using index values stored in the lanes of this vector,assemble values stored in second vectorv.abstractShortVectorShortVector.selectFrom(Vector<Short> v1,Vector<Short> v2) Using values stored in the lanes of this vector,assemble values stored in the second vectorv1and third vectorv2.abstractShortVectorShortVector.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 controlof a mask.abstractShortVectorShortVector.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 controlof a mask.abstractShortVectorSlices a segment of adjacent lanes, starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalShortVectorShortVector.slice(int origin,Vector<Short> w,VectorMask<Short> m) Slices a segment of adjacent lanesunder the control of a mask,starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalShortVectorShortVector.slice(int origin,Vector<Short> w,VectorMask<Short> m) Slices a segment of adjacent lanesunder the control of a mask,starting at a givenoriginlane in the current vector, and continuing (asneeded) into an immediately following vector.finalShortVectorShortVector.sub(short e,VectorMask<Short> m) Subtracts an input scalar from this vectorunder the control of a mask.finalShortVectorSubtracts a second input vector from this vector.finalShortVectorShortVector.sub(Vector<Short> v,VectorMask<Short> m) Subtracts a second input vector from this vectorunder the control of a mask.finalShortVectorShortVector.sub(Vector<Short> v,VectorMask<Short> m) Subtracts a second input vector from this vectorunder the control of a mask.abstractVectorMask<Short> ShortVector.test(VectorOperators.Test op,VectorMask<Short> m) Test selected lanes of this vector,according to the given operation.abstractShortVectorReverses aslice(), insertingthe current vector as a slice within another "background" inputvector, which is regarded as one or the other input to ahypothetical subsequentslice()operation.abstractShortVectorShortVector.unslice(int origin,Vector<Short> w, int part,VectorMask<Short> m) Reverses aslice(), inserting(under the control of a mask)the current vector as a slice within another "background" inputvector, which is regarded as one or the other input to ahypothetical subsequentslice()operation.abstractShortVectorShortVector.unslice(int origin,Vector<Short> w, int part,VectorMask<Short> m) Reverses aslice(), inserting(under the control of a mask)the current vector as a slice within another "background" inputvector, which is regarded as one or the other input to ahypothetical subsequentslice()operation.staticShortVectorShortVector.zero(VectorSpecies<Short> species) Returns a vector of the given specieswhere all lane elements are set tozero, the default primitive value.