Uses of Class
java.lang.Float
Packages that useFloat
Package
Description
Provides classes and interface relating to fonts.
Provides classes that are fundamental to the design of the Java programming 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 ofFloat injava.awt.font
Fields injava.awt.font declared asFloatModifier and TypeFieldDescriptionstatic finalFloat
TextAttribute.JUSTIFICATION_FULL
Justify the line to the full requested width.static finalFloat
TextAttribute.JUSTIFICATION_NONE
Do not allow the line to be justified.static finalFloat
TextAttribute.POSTURE_OBLIQUE
The standard italic posture.static finalFloat
TextAttribute.POSTURE_REGULAR
The standard posture, upright.static finalFloat
TextAttribute.TRACKING_LOOSE
Perform loose tracking.static finalFloat
TextAttribute.TRACKING_TIGHT
Perform tight tracking.static finalFloat
TextAttribute.WEIGHT_BOLD
The standard bold weight.static finalFloat
TextAttribute.WEIGHT_DEMIBOLD
A moderately lighter weight thanWEIGHT_BOLD
.static finalFloat
TextAttribute.WEIGHT_DEMILIGHT
An intermediate weight betweenWEIGHT_LIGHT
andWEIGHT_STANDARD
.static finalFloat
TextAttribute.WEIGHT_EXTRA_LIGHT
The lightest predefined weight.static finalFloat
TextAttribute.WEIGHT_EXTRABOLD
An extra heavy weight.static finalFloat
TextAttribute.WEIGHT_HEAVY
A moderately heavier weight thanWEIGHT_BOLD
.static finalFloat
TextAttribute.WEIGHT_LIGHT
The standard light weight.static finalFloat
TextAttribute.WEIGHT_MEDIUM
An intermediate weight betweenWEIGHT_REGULAR
andWEIGHT_BOLD
.static finalFloat
TextAttribute.WEIGHT_REGULAR
The standard weight.static finalFloat
TextAttribute.WEIGHT_SEMIBOLD
A moderately heavier weight thanWEIGHT_REGULAR
.static finalFloat
TextAttribute.WEIGHT_ULTRABOLD
The heaviest predefined weight.static finalFloat
TextAttribute.WIDTH_CONDENSED
The most condensed predefined width.static finalFloat
TextAttribute.WIDTH_EXTENDED
The most extended predefined width.static finalFloat
TextAttribute.WIDTH_REGULAR
The standard width.static finalFloat
TextAttribute.WIDTH_SEMI_CONDENSED
A moderately condensed width.static finalFloat
TextAttribute.WIDTH_SEMI_EXTENDED
A moderately extended width.Uses ofFloat injava.lang
Modifier and TypeClassDescriptionfinal class
Modifier and TypeMethodDescriptionFloat.resolveConstantDesc
(MethodHandles.Lookup lookup) Resolves this instance as aConstantDesc
, the result of which is the instance itself.staticFloat
Float.valueOf
(float f) Returns aFloat
instance representing the specifiedfloat
value.staticFloat
Returns aFloat
object holding thefloat
value represented by the argument strings
.Modifier and TypeMethodDescriptionFloat.describeConstable()
Returns anOptional
containing the nominal descriptor for this instance, which is the instance itself.Uses ofFloat injava.lang.classfile
Methods injava.lang.classfile that returnFloatModifier and TypeMethodDescriptiondefaultFloat
AnnotationValue.OfFloat.resolvedValue()
Returns the resolved float value.Uses ofFloat injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeFloatModifier and TypeFieldDescriptionstatic finalSimpleType
<Float> SimpleType.FLOAT
TheSimpleType
instance describing values whose Java class name isjava.lang.Float
.Uses ofFloat injdk.incubator.vector
Subclasses with type arguments of typeFloat injdk.incubator.vectorModifier and TypeClassDescriptionclass
A specializedVector
representing an ordered immutable sequence offloat
values.Fields injdk.incubator.vector with type parameters of typeFloatModifier and TypeFieldDescriptionstatic finalVectorOperators.Conversion
<Byte, Float> VectorOperators.B2F
ConvertbyteVal
to(float)byteVal
.static finalVectorOperators.Conversion
<Double, Float> VectorOperators.D2F
ConvertdoubleVal
to(float)doubleVal
.static finalVectorOperators.Conversion
<Float, Byte> VectorOperators.F2B
ConvertfloatVal
to(byte)floatVal
.static finalVectorOperators.Conversion
<Float, Double> VectorOperators.F2D
ConvertfloatVal
to(double)floatVal
.static finalVectorOperators.Conversion
<Float, Integer> VectorOperators.F2I
ConvertfloatVal
to(int)floatVal
.static finalVectorOperators.Conversion
<Float, Long> VectorOperators.F2L
ConvertfloatVal
to(long)floatVal
.static finalVectorOperators.Conversion
<Float, Short> VectorOperators.F2S
ConvertfloatVal
to(short)floatVal
.static finalVectorOperators.Conversion
<Integer, Float> VectorOperators.I2F
ConvertintVal
to(float)intVal
.static finalVectorOperators.Conversion
<Long, Float> VectorOperators.L2F
ConvertlongVal
to(float)longVal
.static finalVectorOperators.Conversion
<Float, Integer> VectorOperators.REINTERPRET_F2I
Reinterpret bits offloatVal
asint
.static finalVectorOperators.Conversion
<Integer, Float> VectorOperators.REINTERPRET_I2F
Reinterpret bits ofintVal
asfloat
.static finalVectorOperators.Conversion
<Short, Float> VectorOperators.S2F
ConvertshortVal
to(float)shortVal
.static finalVectorSpecies
<Float> FloatVector.SPECIES_128
Species representingFloatVector
s ofVectorShape.S_128_BIT
.static finalVectorSpecies
<Float> FloatVector.SPECIES_256
Species representingFloatVector
s ofVectorShape.S_256_BIT
.static finalVectorSpecies
<Float> FloatVector.SPECIES_512
Species representingFloatVector
s ofVectorShape.S_512_BIT
.static finalVectorSpecies
<Float> FloatVector.SPECIES_64
Species representingFloatVector
s ofVectorShape.S_64_BIT
.static finalVectorSpecies
<Float> FloatVector.SPECIES_MAX
Species representingFloatVector
s ofVectorShape.S_Max_BIT
.static finalVectorSpecies
<Float> FloatVector.SPECIES_PREFERRED
Preferred species forFloatVector
s.Methods injdk.incubator.vector that return types with arguments of typeFloatModifier and TypeMethodDescriptionabstractVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, float e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.finalVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, float e,VectorMask<Float> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstractVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, long e) Tests this vector by comparing it with an input scalar, according to the given comparison operation.finalVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, long e,VectorMask<Float> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstractVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op,Vector<Float> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.finalVectorMask
<Float> FloatVector.eq
(float e) Tests if this vector is equal to an input scalar.finalVectorMask
<Float> Tests if this vector is equal to another input vector.finalVectorMask
<Float> FloatVector.lt
(float e) Tests if this vector is less than an input scalar.finalVectorMask
<Float> Tests if this vector is less than another input vector.abstractVectorMask
<Float> FloatVector.test
(VectorOperators.Test op) Tests the lanes of this vector according to the given operation.abstractVectorMask
<Float> FloatVector.test
(VectorOperators.Test op,VectorMask<Float> m) Test selected lanes of this vector, according to the given operation.Method parameters injdk.incubator.vector with type arguments of typeFloatModifier and TypeMethodDescriptionfinalFloatVector
FloatVector.add
(float e,VectorMask<Float> m) Adds this vector to the broadcast of an input scalar, selecting lane elements controlled by a mask.finalFloatVector
Adds this vector to a second input vector.finalFloatVector
FloatVector.add
(Vector<Float> v,VectorMask<Float> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalFloatVector
FloatVector.add
(Vector<Float> v,VectorMask<Float> m) Adds this vector to a second input vector, selecting lanes under the control of a mask.finalFloatVector
FloatVector.blend
(float e,VectorMask<Float> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.finalFloatVector
FloatVector.blend
(long e,VectorMask<Float> m) Replaces selected lanes of this vector with a scalar value under the control of a mask.abstractFloatVector
FloatVector.blend
(Vector<Float> v,VectorMask<Float> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.abstractFloatVector
FloatVector.blend
(Vector<Float> v,VectorMask<Float> m) Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.staticFloatVector
FloatVector.broadcast
(VectorSpecies<Float> species, float e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.staticFloatVector
FloatVector.broadcast
(VectorSpecies<Float> species, long e) Returns a vector of the given species where all lane elements are set to the primitive valuee
.finalVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, float e,VectorMask<Float> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.finalVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op, long e,VectorMask<Float> m) Tests this vector by comparing it with an input scalar, according to the given comparison operation, in lanes selected by a mask.abstractVectorMask
<Float> FloatVector.compare
(VectorOperators.Comparison op,Vector<Float> v) Tests this vector by comparing it with another input vector, according to the given comparison operation.abstractFloatVector
FloatVector.compress
(VectorMask<Float> m) Compresses the lane elements of this vector selecting lanes under the control of a specific mask.finalFloatVector
FloatVector.div
(float e,VectorMask<Float> m) Divides this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalFloatVector
Divides this vector by a second input vector.finalFloatVector
FloatVector.div
(Vector<Float> v,VectorMask<Float> m) Divides this vector by a second input vector under the control of a mask.finalFloatVector
FloatVector.div
(Vector<Float> v,VectorMask<Float> m) Divides this vector by a second input vector under the control of a mask.finalVectorMask
<Float> Tests if this vector is equal to another input vector.abstractFloatVector
FloatVector.expand
(VectorMask<Float> m) Expands the lane elements of this vector under the control of a specific mask.finalFloatVector
Multiplies this vector by a second input vector, and sums the result with a third.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset) Loads a vector from an array of typefloat[]
starting at an offset.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset) Gathers a new vector composed of elements from an array of typefloat[]
, using indexes obtained by adding a fixedoffset
to a series of secondary offsets from anindex map.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset,VectorMask<Float> m) Gathers a new vector composed of elements from an array of typefloat[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from anindex map.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset,VectorMask<Float> m) Gathers a new vector composed of elements from an array of typefloat[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from anindex map.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset,VectorMask<Float> m) Loads a vector from an array of typefloat[]
starting at an offset and using a mask.staticFloatVector
FloatVector.fromArray
(VectorSpecies<Float> species, float[] a, int offset,VectorMask<Float> m) Loads a vector from an array of typefloat[]
starting at an offset and using a mask.staticFloatVector
FloatVector.fromMemorySegment
(VectorSpecies<Float> species,MemorySegment ms, long offset,ByteOrder bo) Loads a vector from amemory segment starting at an offset into the memory segment.staticFloatVector
FloatVector.fromMemorySegment
(VectorSpecies<Float> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Float> m) Loads a vector from amemory segment starting at an offset into the memory segment and using a mask.staticFloatVector
FloatVector.fromMemorySegment
(VectorSpecies<Float> species,MemorySegment ms, long offset,ByteOrder bo,VectorMask<Float> m) Loads a vector from amemory segment starting at an offset into the memory segment and using a mask.final void
FloatVector.intoArray
(float[] a, int offset, int[] indexMap, int mapOffset,VectorMask<Float> m) Scatters this vector into an array of typefloat[]
, under the control of a mask, and using indexes obtained by adding a fixedoffset
to a series of secondary offsets from anindex map.final void
FloatVector.intoArray
(float[] a, int offset,VectorMask<Float> m) Stores this vector into an array of typefloat[]
starting at offset and using a mask.final void
FloatVector.intoMemorySegment
(MemorySegment ms, long offset,ByteOrder bo,VectorMask<Float> m) Stores this vector into amemory segment starting at an offset using explicit byte order and a mask.finalFloatVector
FloatVector.lanewise
(VectorOperators.Binary op, float e,VectorMask<Float> m) Combines the lane values of this vector with the value of a broadcast scalar, with selection of lane elements controlled by a mask.finalFloatVector
FloatVector.lanewise
(VectorOperators.Binary op, long e,VectorMask<Float> 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.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Binary op,Vector<Float> v) Combines the corresponding lane values of this vector with those of a second input vector.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Binary op,Vector<Float> v,VectorMask<Float> 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.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Binary op,Vector<Float> v,VectorMask<Float> 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.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op, float e1, float e2,VectorMask<Float> m) Combines the lane values of this vector with the values of two broadcast scalars, with selection of lane elements controlled by a mask.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op, float e1,Vector<Float> v2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op, float e1,Vector<Float> v2,VectorMask<Float> 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.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op, float e1,Vector<Float> v2,VectorMask<Float> 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.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op,Vector<Float> v1, float e2) Combines the lane values of this vector with the values of another vector and a broadcast scalar.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op,Vector<Float> v1, float e2,VectorMask<Float> 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.finalFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op,Vector<Float> v1, float e2,VectorMask<Float> 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.abstractFloatVector
Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op,Vector<Float> v1,Vector<Float> v2,VectorMask<Float> 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.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Ternary op,Vector<Float> v1,Vector<Float> v2,VectorMask<Float> 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.abstractFloatVector
FloatVector.lanewise
(VectorOperators.Unary op,VectorMask<Float> m) Operates on the lane values of this vector, with selection of lane elements controlled by a mask.finalVectorMask
<Float> Tests if this vector is less than another input vector.finalFloatVector
Computes the larger of this vector and a second input vector.finalFloatVector
Computes the smaller of this vector and a second input vector.finalFloatVector
FloatVector.mul
(float e,VectorMask<Float> m) Multiplies this vector by the broadcast of an input scalar, selecting lane elements controlled by a mask.finalFloatVector
Multiplies this vector by a second input vector.finalFloatVector
FloatVector.mul
(Vector<Float> v,VectorMask<Float> m) Multiplies this vector by a second input vector under the control of a mask.finalFloatVector
FloatVector.mul
(Vector<Float> v,VectorMask<Float> m) Multiplies this vector by a second input vector under the control of a mask.finalFloatVector
Raises this vector to the power of a second input vector.abstractFloatVector
FloatVector.rearrange
(VectorShuffle<Float> shuffle) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.abstractFloatVector
FloatVector.rearrange
(VectorShuffle<Float> s,Vector<Float> 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.abstractFloatVector
FloatVector.rearrange
(VectorShuffle<Float> s,Vector<Float> 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.abstractFloatVector
FloatVector.rearrange
(VectorShuffle<Float> s,VectorMask<Float> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstractFloatVector
FloatVector.rearrange
(VectorShuffle<Float> s,VectorMask<Float> m) Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.abstract float
FloatVector.reduceLanes
(VectorOperators.Associative op,VectorMask<Float> m) Returns a value accumulated from selected lanes of this vector, controlled by a mask.abstractFloatVector
FloatVector.selectFrom
(Vector<Float> v) Using index values stored in the lanes of this vector, assemble values stored in second vectorv
.abstractFloatVector
FloatVector.selectFrom
(Vector<Float> v1,Vector<Float> v2) Using values stored in the lanes of this vector, assemble values stored in the second vectorv1
and third vectorv2
.abstractFloatVector
FloatVector.selectFrom
(Vector<Float> s,VectorMask<Float> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstractFloatVector
FloatVector.selectFrom
(Vector<Float> s,VectorMask<Float> m) Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.abstractFloatVector
Slices a segment of adjacent lanes, starting at a givenorigin
lane in the current vector, and continuing (as needed) into an immediately following vector.finalFloatVector
FloatVector.slice
(int origin,Vector<Float> w,VectorMask<Float> 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.finalFloatVector
FloatVector.slice
(int origin,Vector<Float> w,VectorMask<Float> 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.finalFloatVector
FloatVector.sub
(float e,VectorMask<Float> m) Subtracts an input scalar from this vector under the control of a mask.finalFloatVector
Subtracts a second input vector from this vector.finalFloatVector
FloatVector.sub
(Vector<Float> v,VectorMask<Float> m) Subtracts a second input vector from this vector under the control of a mask.finalFloatVector
FloatVector.sub
(Vector<Float> v,VectorMask<Float> m) Subtracts a second input vector from this vector under the control of a mask.abstractVectorMask
<Float> FloatVector.test
(VectorOperators.Test op,VectorMask<Float> m) Test selected lanes of this vector, according to the given operation.abstractFloatVector
Reverses aslice(), 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.abstractFloatVector
FloatVector.unslice
(int origin,Vector<Float> w, int part,VectorMask<Float> m) Reverses aslice(), 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.abstractFloatVector
FloatVector.unslice
(int origin,Vector<Float> w, int part,VectorMask<Float> m) Reverses aslice(), 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.staticFloatVector
FloatVector.zero
(VectorSpecies<Float> species) Returns a vector of the given species where all lane elements are set to zero, the default primitive value.