Package com.prineside.luaj
Class WeakTable.WeakKeyAndValueSlot
java.lang.Object
com.prineside.luaj.WeakTable.WeakSlot
com.prineside.luaj.WeakTable.WeakKeyAndValueSlot
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,LuaTable.Slot
- Enclosing class:
- WeakTable
-
Field Summary
Fields inherited from class com.prineside.luaj.WeakTable.WeakSlot
key, next, value
-
Constructor Summary
ModifierConstructorDescriptionprotected
WeakKeyAndValueSlot
(LuaValue key, LuaValue value, LuaTable.Slot next) protected
WeakKeyAndValueSlot
(WeakTable.WeakKeyAndValueSlot copyFrom, LuaTable.Slot next) -
Method Summary
Modifier and TypeMethodDescriptionprotected WeakTable.WeakSlot
copy
(LuaTable.Slot next) int
keyindex
(int hashMask) Return hash{pow2,mod}( first().key().hashCode(), sizeMask )void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
WeakKeyAndValueSlot
-
WeakKeyAndValueSlot
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classWeakTable.WeakSlot
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classWeakTable.WeakSlot
-
keyindex
public int keyindex(int hashMask) Description copied from interface:LuaTable.Slot
Return hash{pow2,mod}( first().key().hashCode(), sizeMask )- Specified by:
keyindex
in interfaceLuaTable.Slot
- Specified by:
keyindex
in classWeakTable.WeakSlot
-
set
- Specified by:
set
in classWeakTable.WeakSlot
-
strongkey
- Overrides:
strongkey
in classWeakTable.WeakSlot
-
strongvalue
- Overrides:
strongvalue
in classWeakTable.WeakSlot
-
copy
- Specified by:
copy
in classWeakTable.WeakSlot
-