org.electrocodeogram.cpc.similarity.api.strategy
Enum ISimilarityStrategy.Status

java.lang.Object
  extended by java.lang.Enum<ISimilarityStrategy.Status>
      extended by org.electrocodeogram.cpc.similarity.api.strategy.ISimilarityStrategy.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ISimilarityStrategy.Status>
Enclosing interface:
ISimilarityStrategy

public static enum ISimilarityStrategy.Status
extends java.lang.Enum<ISimilarityStrategy.Status>

Return value for ISimilarityStrategy.calculateSimilarity(IStoreProvider, ISimilarityStrategyTask).


Enum Constant Summary
BREAK
          Processing of further similarity strategies should be aborted.
CONTINUE
          The strategy was applied.
SKIPPED
          The strategy was not applicable.
 
Method Summary
static ISimilarityStrategy.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ISimilarityStrategy.Status[] 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

SKIPPED

public static final ISimilarityStrategy.Status SKIPPED
The strategy was not applicable. No modifications were made.
Processing should continue with the next strategy.


CONTINUE

public static final ISimilarityStrategy.Status CONTINUE
The strategy was applied. Some modifications were made.
Processing should continue with the next strategy.


BREAK

public static final ISimilarityStrategy.Status BREAK
Processing of further similarity strategies should be aborted.

Method Detail

values

public static ISimilarityStrategy.Status[] 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 (ISimilarityStrategy.Status c : ISimilarityStrategy.Status.values())
    System.out.println(c);

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

valueOf

public static ISimilarityStrategy.Status 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