Package com.prineside.luaj
Class WeakTable.WeakKeySlot
java.lang.Object
com.prineside.luaj.WeakTable.WeakSlot
com.prineside.luaj.WeakTable.WeakKeySlot
- 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
ConstructorsModifierConstructorDescriptionprotectedWeakKeySlot(LuaValue key, LuaValue value, LuaTable.Slot next) protectedWeakKeySlot(WeakTable.WeakKeySlot copyFrom, LuaTable.Slot next) -
Method Summary
Modifier and TypeMethodDescriptionprotected WeakTable.WeakSlotcopy(LuaTable.Slot rest) intkeyindex(int mask) Return hash{pow2,mod}( first().key().hashCode(), sizeMask )voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
-
Constructor Details
-
WeakKeySlot
-
WeakKeySlot
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classWeakTable.WeakSlot
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classWeakTable.WeakSlot
-
keyindex
public int keyindex(int mask) Description copied from interface:LuaTable.SlotReturn hash{pow2,mod}( first().key().hashCode(), sizeMask )- Specified by:
keyindexin interfaceLuaTable.Slot- Specified by:
keyindexin classWeakTable.WeakSlot
-
set
- Specified by:
setin classWeakTable.WeakSlot
-
strongkey
- Overrides:
strongkeyin classWeakTable.WeakSlot
-
copy
- Specified by:
copyin classWeakTable.WeakSlot
-