Package org.snpsift.lang.expression
Class FieldIterator
- java.lang.Object
-
- org.snpsift.lang.expression.FieldIterator
-
public class FieldIterator extends java.lang.Object
Iterates on fields / sub-fields It's a singleton- Author:
- pcingola
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldIterator.IteratorType
-
Constructor Summary
Constructors Constructor Description FieldIterator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldIterator
get()
int
get(FieldIterator.IteratorType iterType)
Set 'max' parameter for an iteratorint
getType()
boolean
hasNext()
Is there a 'next'void
next()
Next in iterationvoid
reset()
Reset all countersvoid
setMax(FieldIterator.IteratorType iterType, int max)
Set 'max' parameter for an iteratorvoid
setType(int type)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-