8255022: Documentation missing for Vector API zero methods

This commit is contained in:
Paul Sandoz 2020-10-19 12:27:00 -07:00
parent 60f63ec811
commit 83639200ab
7 changed files with 42 additions and 7 deletions

View file

@ -423,7 +423,12 @@ public abstract class ByteVector extends AbstractVector<Byte> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static ByteVector zero(VectorSpecies<Byte> species) {

View file

@ -423,7 +423,12 @@ public abstract class DoubleVector extends AbstractVector<Double> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static DoubleVector zero(VectorSpecies<Double> species) {

View file

@ -423,7 +423,12 @@ public abstract class FloatVector extends AbstractVector<Float> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static FloatVector zero(VectorSpecies<Float> species) {

View file

@ -423,7 +423,12 @@ public abstract class IntVector extends AbstractVector<Integer> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static IntVector zero(VectorSpecies<Integer> species) {

View file

@ -423,7 +423,12 @@ public abstract class LongVector extends AbstractVector<Long> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static LongVector zero(VectorSpecies<Long> species) {

View file

@ -423,7 +423,12 @@ public abstract class ShortVector extends AbstractVector<Short> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static ShortVector zero(VectorSpecies<Short> species) {

View file

@ -427,7 +427,12 @@ public abstract class $abstractvectortype$ extends AbstractVector<$Boxtype$> {
// comment <!--workaround--> for this.
/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static $abstractvectortype$ zero(VectorSpecies<$Boxtype$> species) {