Package com.prineside.luaj
Class WeakTable.WeakSlot
java.lang.Object
com.prineside.luaj.WeakTable.WeakSlot
- All Implemented Interfaces:
 KryoSerializable,LuaTable.Slot
- Direct Known Subclasses:
 WeakTable.WeakKeyAndValueSlot,WeakTable.WeakKeySlot,WeakTable.WeakValueSlot
- Enclosing class:
 - WeakTable
 
public abstract static class WeakTable.WeakSlot
extends Object
implements LuaTable.Slot, KryoSerializable
- 
Method Summary
Modifier and TypeMethodDescriptionadd(LuaTable.Slot entry) 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.abstract intkeyindex(int hashMask) Return hash{pow2,mod}( first().key().hashCode(), sizeMask )voidrelink(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.abstract LuaTable.Slotvoid 
- 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable
 - 
read
- Specified by:
 readin interfaceKryoSerializable
 - 
keyindex
public abstract int keyindex(int hashMask) Description copied from interface:LuaTable.SlotReturn hash{pow2,mod}( first().key().hashCode(), sizeMask )- Specified by:
 keyindexin interfaceLuaTable.Slot
 - 
set
 - 
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
 - 
strongkey
 - 
strongvalue
 
 -