org.encog.app.analyst.csv.sort
Class SortedField

java.lang.Object
  extended by org.encog.app.analyst.csv.sort.SortedField

public class SortedField
extends Object

Specifies how a field is to be sorted by SortCSV.


Constructor Summary
SortedField(int theIndexindex, SortType t, boolean theAscending)
          Construct the object.
 
Method Summary
 int getIndex()
           
 SortType getSortType()
           
 boolean isAscending()
           
 void setAscending(boolean theAscending)
           
 void setIndex(int theIndex)
           
 void setSortType(SortType theSortType)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortedField

public SortedField(int theIndexindex,
                   SortType t,
                   boolean theAscending)
Construct the object.

Parameters:
theIndexindex - The index of the sorted field.
t - The type of sort, the type of object.
theAscending - True, if this is an ascending sort.
Method Detail

getIndex

public int getIndex()
Returns:
the index

getSortType

public SortType getSortType()
Returns:
the sortType

isAscending

public boolean isAscending()
Returns:
the ascending

setAscending

public void setAscending(boolean theAscending)
Parameters:
theAscending - the ascending to set

setIndex

public void setIndex(int theIndex)
Parameters:
theIndex - the index to set

setSortType

public void setSortType(SortType theSortType)
Parameters:
theSortType - the sortType to set

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.