Class Range
java.lang.Object
com.googlecode.aviator.runtime.type.AviatorObject
com.googlecode.aviator.runtime.type.Range
- All Implemented Interfaces:
Sequence<Number>
,Serializable
,Iterable<Number>
A range in [start, end) with step.
- Since:
- 5.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AviatorNumber
(package private) final boolean
private boolean
static final Range
private static final long
private final AviatorNumber
private final AviatorNumber
private static final AviatorLong
Fields inherited from class com.googlecode.aviator.runtime.type.AviatorObject
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirst()
int
hintSize()
int
innerCompare
(AviatorObject other, Map<String, Object> env) boolean
isLoop()
iterator()
last()
newCollector
(int size) int
size()
Methods inherited from class com.googlecode.aviator.runtime.type.AviatorObject
add, bitAnd, bitNot, bitOr, bitXor, booleanValue, compare, compareEq, defineValue, deref, div, exponent, getElement, getMetadata, isNull, match, meta, mod, mult, neg, not, numberValue, setValue, shiftLeft, shiftRight, stringValue, sub, toString, unsignedShiftRight, withMeta, withoutMeta
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ZERO
-
LOOP
-
step
-
start
-
end
-
forward
final boolean forward -
isLoop
private boolean isLoop
-
-
Constructor Details
-
Range
-
-
Method Details
-
isLoop
public boolean isLoop() -
desc
- Overrides:
desc
in classAviatorObject
-
innerCompare
- Specified by:
innerCompare
in classAviatorObject
-
getAviatorType
- Specified by:
getAviatorType
in classAviatorObject
-
getValue
- Specified by:
getValue
in classAviatorObject
-
first
-
last
-
hintSize
public int hintSize() -
size
public int size() -
newCollector
- Specified by:
newCollector
in interfaceSequence<Number>
-
iterator
-