net.sourceforge.cilib.problem.dataset
Class StringDataSetBuilder
java.lang.Object
net.sourceforge.cilib.problem.dataset.DataSetBuilder
net.sourceforge.cilib.problem.dataset.TextDataSetBuilder
net.sourceforge.cilib.problem.dataset.StringDataSetBuilder
- All Implemented Interfaces:
- Serializable, Iterable<DataSet>, Cloneable
public class StringDataSetBuilder
- extends TextDataSetBuilder
- Author:
- Gary Pampara
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringDataSetBuilder
public StringDataSetBuilder()
StringDataSetBuilder
public StringDataSetBuilder(StringDataSetBuilder rhs)
getClone
public StringDataSetBuilder getClone()
- Description copied from interface:
Cloneable
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class DataSetBuilder
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
initialise
public void initialise()
- Specified by:
initialise
in class TextDataSetBuilder
getStrings
public ArrayList<String> getStrings()
getShortestString
public String getShortestString()
- Description copied from class:
TextDataSetBuilder
- Get the length of the shortest string contained in the processed
DataSet objects.
- Specified by:
getShortestString
in class TextDataSetBuilder
- Returns:
- The length of the shortest string within this TextDataSetBuilder.
getLongestString
public String getLongestString()
- Description copied from class:
TextDataSetBuilder
- Get the length of the longest string contained in the processed
DataSet objects.
- Specified by:
getLongestString
in class TextDataSetBuilder
- Returns:
- The length of the longest string within this TextDataSetBuilder.
size
public int size()
- Specified by:
size
in class TextDataSetBuilder
get
public String get(int index)
- Specified by:
get
in class TextDataSetBuilder
Copyright © 2009 CIRG. All Rights Reserved.