Class ScriptIteratorType.IteratorPair

java.lang.Object
com.blackrook.rookscript.ScriptIteratorType.IteratorPair
Enclosing interface:
ScriptIteratorType

public static class ScriptIteratorType.IteratorPair extends Object
The iterator pair that gets pushed onto a script stack on each iteration.
  • Constructor Details

    • IteratorPair

      public IteratorPair()
      Creates a new iterator pair.
    • IteratorPair

      public IteratorPair(Object key, Object value)
      Creates a new iterator pair.
      Parameters:
      key - pair key.
      value - pair value.
  • Method Details

    • set

      public void set(Object key, Object value)
      Sets the key and value in this pair.
      Parameters:
      key - pair key.
      value - pair value.
    • getKey

      public ScriptValue getKey()
      Returns:
      the pair key.
      Since:
      1.3.0, returns ScriptValue, not Object.
    • getValue

      public ScriptValue getValue()
      Returns:
      the pair value.