org.rythmengine.utils
Class Range<TYPE extends Comparable<TYPE>>
java.lang.Object
org.rythmengine.utils.Range<TYPE>
- All Implemented Interfaces:
- Iterable<TYPE>
public abstract class Range<TYPE extends Comparable<TYPE>>
- extends Object
- implements Iterable<TYPE>
Utility class to generate ranges for iteration purpose
Range
public Range(TYPE minInclusive,
TYPE maxExclusive)
min
public TYPE min()
max
public TYPE max()
next
protected abstract TYPE next(TYPE element)
include
public abstract boolean include(TYPE element)
size
public abstract int size()
toString
public String toString()
- Overrides:
toString
in class Object
valueOf
public static Range valueOf(String s)
iterator
public Iterator<TYPE> iterator()
- Specified by:
iterator
in interface Iterable<TYPE extends Comparable<TYPE>>
Copyright © 2013. All Rights Reserved.