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 booleanprivate booleanstatic final Rangeprivate static final longprivate final AviatorNumberprivate final AviatorNumberprivate static final AviatorLongFields inherited from class 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 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
-
innerCompare
- Specified by:
innerComparein classAviatorObject
-
getAviatorType
- Specified by:
getAviatorTypein classAviatorObject
-
getValue
-
first
-
last
-
hintSize
-
size
public int size() -
newCollector
- Specified by:
newCollectorin interfaceSequence<Number>
-
iterator
-