de.jstacs.data
Enum DataSet.WeightedDataSetFactory.SortOperation

java.lang.Object
  extended by java.lang.Enum<DataSet.WeightedDataSetFactory.SortOperation>
      extended by de.jstacs.data.DataSet.WeightedDataSetFactory.SortOperation
All Implemented Interfaces:
Serializable, Comparable<DataSet.WeightedDataSetFactory.SortOperation>
Enclosing class:
DataSet.WeightedDataSetFactory

public static enum DataSet.WeightedDataSetFactory.SortOperation
extends Enum<DataSet.WeightedDataSetFactory.SortOperation>

This enum defines the different types of sort operations that can be performed while creating a DataSet.WeightedDataSetFactory.

Author:
Jens Keilwagen

Enum Constant Summary
NO_SORT
          Indicates that no sorting shall be done after eliminating Sequences that occur more than once.
SORT_BY_SEQUENCE
          Indicates that the Sequences shall be sorted after eliminating Sequences that occur more than once.
SORT_BY_WEIGHTS
          This value indicates that the Sequences shall be sorted according to their weights after eliminating Sequences that occur more than once.
 
Method Summary
static DataSet.WeightedDataSetFactory.SortOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataSet.WeightedDataSetFactory.SortOperation[] 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

NO_SORT

public static final DataSet.WeightedDataSetFactory.SortOperation NO_SORT
Indicates that no sorting shall be done after eliminating Sequences that occur more than once.


SORT_BY_SEQUENCE

public static final DataSet.WeightedDataSetFactory.SortOperation SORT_BY_SEQUENCE
Indicates that the Sequences shall be sorted after eliminating Sequences that occur more than once. Probably this is the slowest option.


SORT_BY_WEIGHTS

public static final DataSet.WeightedDataSetFactory.SortOperation SORT_BY_WEIGHTS
This value indicates that the Sequences shall be sorted according to their weights after eliminating Sequences that occur more than once.

Method Detail

values

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

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

valueOf

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