- java.lang.Object
-
- java.lang.Enum<Shape>
-
- jdk.incubator.vector.Shape
-
- All Implemented Interfaces:
Serializable
,Comparable<Shape>
,Constable
public enum Shape extends Enum<Shape>
-
-
Nested Class Summary
-
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description int
bitSize()
Returns the size, in bits, of this shape.static Shape
forBitSize(int bitSize)
Finds appropriate shape depending on bitsize.static Shape
valueOf(String name)
Returns the enum constant of this type with the specified name.static Shape[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
S_64_BIT
public static final Shape S_64_BIT
Shape of length 64 bits
-
S_128_BIT
public static final Shape S_128_BIT
Shape of length 128 bits
-
S_256_BIT
public static final Shape S_256_BIT
Shape of length 256 bits
-
S_512_BIT
public static final Shape S_512_BIT
Shape of length 512 bits
-
S_Max_BIT
public static final Shape S_Max_BIT
Shape of maximum length supported on the platform
-
-
Method Detail
-
values
public static Shape[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Shape valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
bitSize
public int bitSize()
Returns the size, in bits, of this shape.- Returns:
- the size, in bits, of this shape.
-
forBitSize
public static Shape forBitSize(int bitSize)
Finds appropriate shape depending on bitsize.- Parameters:
bitSize
- the size in bits- Returns:
- the shape corresponding to bitsize
- See Also:
bitSize
-
-