Package com.blackrook.rookscript
Class ScriptIteratorType.IteratorPair
java.lang.Object
com.blackrook.rookscript.ScriptIteratorType.IteratorPair
- Enclosing interface:
- ScriptIteratorType
The iterator pair that gets pushed onto a script stack on each iteration.
-
Constructor Summary
ConstructorDescriptionCreates a new iterator pair.IteratorPair
(Object key, Object value) Creates a new iterator pair. -
Method Summary
-
Constructor Details
-
IteratorPair
public IteratorPair()Creates a new iterator pair. -
IteratorPair
Creates a new iterator pair.- Parameters:
key
- pair key.value
- pair value.
-
-
Method Details
-
set
Sets the key and value in this pair.- Parameters:
key
- pair key.value
- pair value.
-
getKey
- Returns:
- the pair key.
- Since:
- 1.3.0, returns
ScriptValue
, notObject
.
-
getValue
- Returns:
- the pair value.
-