net.xqhs.graphs.matcher
Enum Match.Candidacy

java.lang.Object
  extended by java.lang.Enum<Match.Candidacy>
      extended by net.xqhs.graphs.matcher.Match.Candidacy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Match.Candidacy>
Enclosing class:
Match

public static enum Match.Candidacy
extends java.lang.Enum<Match.Candidacy>

Possible values for the situations in which two matches can be with regard to merging.

Author:
Andrei Olaru

Enum Constant Summary
IMMEDIATE
          The two matches may be merged immediately (using Match.merge(Match, Map, Map, MonitorPack)) with no further checks.
NONE
          The two matches cannot be merged.
OUTER
          The two matches may be merged in the future (appropriate matches containing these two matches may be merged), but not immediately (they have no common vertices).
 
Method Summary
static Match.Candidacy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Match.Candidacy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OUTER

public static final Match.Candidacy OUTER
The two matches may be merged in the future (appropriate matches containing these two matches may be merged), but not immediately (they have no common vertices). They are 'outer' merge candidates for each other.


IMMEDIATE

public static final Match.Candidacy IMMEDIATE
The two matches may be merged immediately (using Match.merge(Match, Map, Map, MonitorPack)) with no further checks. They are merge candidates for each other.


NONE

public static final Match.Candidacy NONE
The two matches cannot be merged. This can be because:

Method Detail

values

public static Match.Candidacy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Match.Candidacy c : Match.Candidacy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Match.Candidacy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null