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
- Author:
- dennis(killme2008@gmail.com)
- See Also:
-
Field Summary
FieldsFields inherited from class com.googlecode.aviator.runtime.type.AviatorObject
metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirst()inthintSize()intinnerCompare(AviatorObject other, Map<String, Object> env) booleanisLoop()iterator()last()newCollector(int size) intsize()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, withoutMetaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
LOOP
-
-
Constructor Details
-
Range
-
-
Method Details
-
isLoop
public boolean isLoop() -
desc
- Overrides:
descin classAviatorObject
-
innerCompare
- Specified by:
innerComparein classAviatorObject
-
getAviatorType
- Specified by:
getAviatorTypein classAviatorObject
-
getValue
- Specified by:
getValuein classAviatorObject
-
first
-
last
-
hintSize
public int hintSize() -
size
public int size() -
newCollector
- Specified by:
newCollectorin interfaceSequence<Number>
-
iterator
-