public enum CandidateCompareResult extends java.lang.Enum<CandidateCompareResult>
| Enum Constant and Description |
|---|
AMBIGUOUS
Indicates that both candidates are equally valid.
|
EQUALLY_INVALID
Indicates that both candidates are equally invalid.
|
OTHER
Indicates that the current candidate is worse than the other one.
|
SUSPICIOUS_OTHER
Indicates that the current candidate is worse than the other one due
to less specific parameter types, but the other one is on a different
implicit receiver than this one.
|
THIS
Indicates that the current candidate is a better match than the other one.
|
| Modifier and Type | Method and Description |
|---|---|
static CandidateCompareResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CandidateCompareResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CandidateCompareResult THIS
public static final CandidateCompareResult OTHER
public static final CandidateCompareResult SUSPICIOUS_OTHER
public static final CandidateCompareResult AMBIGUOUS
public static final CandidateCompareResult EQUALLY_INVALID
public static CandidateCompareResult[] values()
for (CandidateCompareResult c : CandidateCompareResult.values()) System.out.println(c);
public static CandidateCompareResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null