Support for iterator-style for loops, and "pairs" builting function
This commit is contained in:
@@ -10,6 +10,14 @@ public class LInteger extends LNumber {
|
||||
this.m_value = value;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
return o != null && o instanceof LInteger && m_value == ((LInteger)o).m_value;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return m_value;
|
||||
}
|
||||
|
||||
public int luaAsInt() {
|
||||
return m_value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user