Package se.krka.kahlua.j2se
Class KahluaTableImpl
java.lang.Object
se.krka.kahlua.j2se.KahluaTableImpl
- All Implemented Interfaces:
KahluaTable
public class KahluaTableImpl extends java.lang.Object implements KahluaTable
-
Constructor Summary
Constructors Constructor Description KahluaTableImpl(java.util.Map delegate)
-
Method Summary
Modifier and Type Method Description static boolean
canSave(java.lang.Object key, java.lang.Object value)
KahluaTable
getMetatable()
KahluaTableImpl
getRewriteTable()
java.lang.String
getString(java.lang.String string)
boolean
isEmpty()
KahluaTableIterator
iterator()
int
len()
void
load(java.io.DataInputStream input, int WorldVersion)
java.lang.Object
load(java.io.DataInputStream input, int WorldVersion, byte sbyt)
void
load(java.nio.ByteBuffer input, int WorldVersion)
java.lang.Object
load(java.nio.ByteBuffer input, int WorldVersion, byte sbyt)
java.lang.Object
rawget(int key)
java.lang.Object
rawget(java.lang.Object key)
boolean
rawgetBool(java.lang.Object key)
int
rawgetInt(java.lang.Object key)
java.lang.String
rawgetStr(java.lang.Object key)
void
rawset(int key, java.lang.Object value)
void
rawset(java.lang.Object key, java.lang.Object value)
void
save(java.io.DataOutputStream output)
void
save(java.nio.ByteBuffer output)
void
setMetatable(KahluaTable metatable)
void
setRewriteTable(java.lang.Object value)
int
size()
java.lang.String
toString()
void
wipe()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
KahluaTableImpl
public KahluaTableImpl(java.util.Map delegate)
-
-
Method Details
-
setMetatable
- Specified by:
setMetatable
in interfaceKahluaTable
-
getMetatable
- Specified by:
getMetatable
in interfaceKahluaTable
-
size
public int size()- Specified by:
size
in interfaceKahluaTable
-
rawset
public void rawset(java.lang.Object key, java.lang.Object value)- Specified by:
rawset
in interfaceKahluaTable
-
rawget
public java.lang.Object rawget(java.lang.Object key)- Specified by:
rawget
in interfaceKahluaTable
-
rawset
public void rawset(int key, java.lang.Object value)- Specified by:
rawset
in interfaceKahluaTable
-
rawgetStr
public java.lang.String rawgetStr(java.lang.Object key) -
rawgetInt
public int rawgetInt(java.lang.Object key) -
rawgetBool
public boolean rawgetBool(java.lang.Object key) -
rawget
public java.lang.Object rawget(int key)- Specified by:
rawget
in interfaceKahluaTable
-
len
public int len()- Specified by:
len
in interfaceKahluaTable
-
iterator
- Specified by:
iterator
in interfaceKahluaTable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceKahluaTable
-
wipe
public void wipe()- Specified by:
wipe
in interfaceKahluaTable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
save
public void save(java.nio.ByteBuffer output)- Specified by:
save
in interfaceKahluaTable
-
save
public void save(java.io.DataOutputStream output) throws java.io.IOException- Specified by:
save
in interfaceKahluaTable
- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer input, int WorldVersion)- Specified by:
load
in interfaceKahluaTable
-
load
public java.lang.Object load(java.nio.ByteBuffer input, int WorldVersion, byte sbyt) throws java.lang.RuntimeException- Throws:
java.lang.RuntimeException
-
load
public void load(java.io.DataInputStream input, int WorldVersion) throws java.io.IOException- Specified by:
load
in interfaceKahluaTable
- Throws:
java.io.IOException
-
load
public java.lang.Object load(java.io.DataInputStream input, int WorldVersion, byte sbyt) throws java.io.IOException, java.lang.RuntimeException- Throws:
java.io.IOException
java.lang.RuntimeException
-
getString
public java.lang.String getString(java.lang.String string)- Specified by:
getString
in interfaceKahluaTable
-
getRewriteTable
-
setRewriteTable
public void setRewriteTable(java.lang.Object value) -
canSave
public static boolean canSave(java.lang.Object key, java.lang.Object value)
-