Package org.snpsift.lang.expression
Class FieldIterator
- java.lang.Object
-
- org.snpsift.lang.expression.FieldIterator
-
public class FieldIterator extends java.lang.ObjectIterates on fields / sub-fields It's a singleton- Author:
- pcingola
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldIterator.IteratorType
-
Constructor Summary
Constructors Constructor Description FieldIterator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldIteratorget()intget(FieldIterator.IteratorType iterType)Set 'max' parameter for an iteratorintgetType()booleanhasNext()Is there a 'next'voidnext()Next in iterationvoidreset()Reset all countersvoidsetMax(FieldIterator.IteratorType iterType, int max)Set 'max' parameter for an iteratorvoidsetType(int type)java.lang.StringtoString()
-
-
-
Method Detail
-
get
public static FieldIterator get()
-
get
public int get(FieldIterator.IteratorType iterType)
Set 'max' parameter for an iterator- Parameters:
starType-max-
-
getType
public int getType()
-
hasNext
public boolean hasNext()
Is there a 'next'- Returns:
-
next
public void next()
Next in iteration
-
reset
public void reset()
Reset all counters
-
setMax
public void setMax(FieldIterator.IteratorType iterType, int max)
Set 'max' parameter for an iterator- Parameters:
starType-max-
-
setType
public void setType(int type)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-