Package adams.data.indexedsplits
Class SplitIndices
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.indexedsplits.SplitIndices
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
public class SplitIndices extends LoggingObject
Wrapper around indices.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected gnu.trove.list.TIntList
m_Indices
the indices.protected String
m_Name
the name.-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SplitIndices(String name, int[] indices)
Initializes the indices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getIndices()
Returns the indices.String
getName()
Returns the name for the indices.int
size()
Returns the number of indices stored.String
toString()
Returns a short textual representation.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Name
protected String m_Name
the name.
-
m_Indices
protected gnu.trove.list.TIntList m_Indices
the indices.
-
-
Constructor Detail
-
SplitIndices
public SplitIndices(String name, int[] indices)
Initializes the indices.- Parameters:
name
- the name for the indicesindices
- the indices to use
-
-
Method Detail
-
getName
public String getName()
Returns the name for the indices.- Returns:
- the name
-
size
public int size()
Returns the number of indices stored.- Returns:
- the number of indices
-
getIndices
public int[] getIndices()
Returns the indices.- Returns:
- the indices in use
-
-