StrongSlot entry = slot.first(); if (entry != null) newArray[ k - 1 ] = entry.value(); } else { int j = slot.keyindex( newHashMask );
StrongSlot entry = slot.first(); if (entry != null) newArray[ k - 1 ] = entry.value(); } else { int j = slot.keyindex( newHashMask );
StrongSlot entry = slot.first(); if (entry != null) newArray[ k - 1 ] = entry.value(); } else { int j = slot.keyindex( newHashMask );
@Override public Slot remove( StrongSlot target ) { LuaValue key = strongkey(); if ( key == null ) { return next.remove( target ); } else if ( target.keyeq( key ) ) { this.value = null; return this; } else { next = next.remove( target ); return this; } }
@Override public Slot set(StrongSlot target, LuaValue value) { LuaValue key = strongkey(); if ( key != null && target.find( key ) != null ) { return set( value ); } else if ( key != null ) { // Our key is still good. next = next.set( target, value ); return this; } else { // our key was dropped, remove ourselves from the chain. return next.set( target, value ); } }
public boolean keyeq(LuaValue key) { StrongSlot first = first(); return ( first != null ) && first.keyeq( key ); }
public StrongSlot find(LuaValue key) { StrongSlot first = first(); return ( first != null ) ? first.find( key ) : null; }
@Override public StrongSlot find(LuaValue key) { StrongSlot first = first(); return ( first != null ) ? first.find( key ) : null; }
protected LuaValue hashget(LuaValue key) { if ( hashEntries > 0 ) { for ( Slot slot = hash[ hashSlot(key) ]; slot != null; slot = slot.rest() ) { StrongSlot foundSlot; if ( ( foundSlot = slot.find(key) ) != null ) { return foundSlot.value(); } } } return NIL; }
public boolean keyeq(LuaValue key) { StrongSlot first = first(); return ( first != null ) && first.keyeq( key ); }
public Slot set(StrongSlot target, LuaValue value) { LuaValue key = strongkey(); if ( key != null && target.find( key ) != null ) { return set( value ); } else if ( key != null ) { // Our key is still good. next = next.set( target, value ); return this; } else { // our key was dropped, remove ourselves from the chain. return next.set( target, value ); } }
public StrongSlot find(LuaValue key) { StrongSlot first = first(); return ( first != null ) ? first.find( key ) : null; }
public Slot set(StrongSlot target, LuaValue value) { LuaValue key = strongkey(); if ( key != null && target.find( key ) != null ) { return set( value ); } else if ( key != null ) { // Our key is still good. next = next.set( target, value ); return this; } else { // our key was dropped, remove ourselves from the chain. return next.set( target, value ); } }
protected LuaValue hashget(LuaValue key) { if ( hashEntries > 0 ) { for ( Slot slot = hash[ hashSlot(key) ]; slot != null; slot = slot.rest() ) { StrongSlot foundSlot; if ( ( foundSlot = slot.find(key) ) != null ) { return foundSlot.value(); } } } return NIL; }
@Override public boolean keyeq(LuaValue key) { StrongSlot first = first(); return ( first != null ) && first.keyeq( key ); }
public Slot remove( StrongSlot target ) { LuaValue key = strongkey(); if ( key == null ) { return next.remove( target ); } else if ( target.keyeq( key ) ) { this.value = null; return this; } else { next = next.remove( target ); return this; } }
public Slot remove( StrongSlot target ) { LuaValue key = strongkey(); if ( key == null ) { return next.remove( target ); } else if ( target.keyeq( key ) ) { this.value = null; return this; } else { next = next.remove( target ); return this; } }