Package com.prineside.luaj
Class LuaTable.DeadSlot
java.lang.Object
com.prineside.luaj.LuaTable.DeadSlot
- All Implemented Interfaces:
 com.esotericsoftware.kryo.KryoSerializable,LuaTable.Slot
- Enclosing class:
 - LuaTable
 
public static class LuaTable.DeadSlot
extends Object
implements LuaTable.Slot, com.esotericsoftware.kryo.KryoSerializable
A Slot whose value has been set to nil. The key is kept in a weak reference so that
 it can be found by next().
- 
Method Summary
Modifier and TypeMethodDescriptionadd(LuaTable.Slot newEntry) Link the given new entry to this slot.intarraykey(int max) Return first entry's key, iff it is an integer between 1 and max, inclusive, or zero otherwise.com.prineside.luaj.LuaTable.StrongSlotCompare given key with first()'s key; return first() if equal.com.prineside.luaj.LuaTable.StrongSlotfirst()Return first Entry, if still present, or null.booleanCompare given key with first()'s key; return true if equal.intkeyindex(int hashMask) Return hash{pow2,mod}( first().key().hashCode(), sizeMask )voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) relink(LuaTable.Slot rest) Return a Slot with the same first key and value (if still present) and rest() equal to rest.remove(com.prineside.luaj.LuaTable.StrongSlot target) Return a Slot with the given value set to nil; must not return null for next() to behave correctly.rest()Return rest of elementsSet the value of this Slot's first Entry, if possible, or return a new Slot whose first entry has the given value.toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)  
- 
Method Details
- 
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
 writein interfacecom.esotericsoftware.kryo.KryoSerializable
 - 
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
 readin interfacecom.esotericsoftware.kryo.KryoSerializable
 - 
keyindex
public int keyindex(int hashMask) Description copied from interface:LuaTable.SlotReturn hash{pow2,mod}( first().key().hashCode(), sizeMask )- Specified by:
 keyindexin interfaceLuaTable.Slot
 - 
first
public com.prineside.luaj.LuaTable.StrongSlot first()Description copied from interface:LuaTable.SlotReturn first Entry, if still present, or null.- Specified by:
 firstin interfaceLuaTable.Slot
 - 
find
Description copied from interface:LuaTable.SlotCompare given key with first()'s key; return first() if equal.- Specified by:
 findin interfaceLuaTable.Slot
 - 
keyeq
Description copied from interface:LuaTable.SlotCompare given key with first()'s key; return true if equal. May return true for keys no longer present in the table.- Specified by:
 keyeqin interfaceLuaTable.Slot
 - 
rest
Description copied from interface:LuaTable.SlotReturn rest of elements- Specified by:
 restin interfaceLuaTable.Slot
 - 
arraykey
public int arraykey(int max) Description copied from interface:LuaTable.SlotReturn first entry's key, iff it is an integer between 1 and max, inclusive, or zero otherwise.- Specified by:
 arraykeyin interfaceLuaTable.Slot
 - 
set
Description copied from interface:LuaTable.SlotSet the value of this Slot's first Entry, if possible, or return a new Slot whose first entry has the given value.- Specified by:
 setin interfaceLuaTable.Slot
 - 
add
Description copied from interface:LuaTable.SlotLink the given new entry to this slot.- Specified by:
 addin interfaceLuaTable.Slot
 - 
remove
Description copied from interface:LuaTable.SlotReturn a Slot with the given value set to nil; must not return null for next() to behave correctly.- Specified by:
 removein interfaceLuaTable.Slot
 - 
relink
Description copied from interface:LuaTable.SlotReturn a Slot with the same first key and value (if still present) and rest() equal to rest.- Specified by:
 relinkin interfaceLuaTable.Slot
 - 
toString
 
 -