public static enum TypeKindUtils.PrimitiveConversionKind extends Enum<TypeKindUtils.PrimitiveConversionKind>
Enum Constant and Description |
---|
NARROWING
The conversion is a narrowing primitive conversion.
|
SAME
The two primitive kinds are the same.
|
WIDENING
The conversion is a widening primitive conversion.
|
Modifier and Type | Method and Description |
---|---|
static TypeKindUtils.PrimitiveConversionKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeKindUtils.PrimitiveConversionKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeKindUtils.PrimitiveConversionKind SAME
public static final TypeKindUtils.PrimitiveConversionKind WIDENING
This includes byte to char, even though that is strictly a "widening and narrowing primitive conversion", according to JLS 5.1.4.
public static final TypeKindUtils.PrimitiveConversionKind NARROWING
public static TypeKindUtils.PrimitiveConversionKind[] values()
for (TypeKindUtils.PrimitiveConversionKind c : TypeKindUtils.PrimitiveConversionKind.values()) System.out.println(c);
public static TypeKindUtils.PrimitiveConversionKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null