Serializable
, Comparable<ConversionComparator.Comparison>
public static enum ConversionComparator.Comparison extends Enum<ConversionComparator.Comparison>
Enum Constant | Description |
---|---|
INDETERMINATE |
The conversions cannot be compared.
|
TYPE_1_BETTER |
The first conversion is better than the second one.
|
TYPE_2_BETTER |
The second conversion is better than the first one.
|
Modifier and Type | Method | Description |
---|---|---|
static ConversionComparator.Comparison |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ConversionComparator.Comparison[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConversionComparator.Comparison INDETERMINATE
public static final ConversionComparator.Comparison TYPE_1_BETTER
public static final ConversionComparator.Comparison TYPE_2_BETTER
public static ConversionComparator.Comparison[] values()
for (ConversionComparator.Comparison c : ConversionComparator.Comparison.values()) System.out.println(c);
public static ConversionComparator.Comparison 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 Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2015, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b147-1