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 ); } }
@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 ); } }
@Override public Slot relink( Slot rest ) { if ( strongkey() != null && strongvalue() != null ) { if ( rest == null && this.next == null ) { return this; } else { return copy( rest ); } } else { return rest; } }
@Override public StrongSlot first() { LuaValue key = strongkey(); LuaValue value = strongvalue(); if ( key != null && value != null ) { return new LuaTable.NormalEntry(key, value); } else { this.key = null; this.value = null; return null; } }
public StrongSlot first() { LuaValue key = strongkey(); LuaValue value = strongvalue(); if ( key != null && value != null ) { return new LuaTable.NormalEntry(key, value); } else { this.key = null; this.value = null; return null; } }
public Slot relink( Slot rest ) { if ( strongkey() != null && strongvalue() != null ) { if ( rest == null && this.next == null ) { return this; } else { return copy( rest ); } } else { return rest; } }
public StrongSlot first() { LuaValue key = strongkey(); LuaValue value = strongvalue(); if ( key != null && value != null ) { return new LuaTable.NormalEntry(key, value); } else { this.key = null; this.value = null; return 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 ); } }
@Override public Slot add( Slot entry ) { next = ( next != null ) ? next.add( entry ) : entry; if ( strongkey() != null && strongvalue() != null ) { return this; } else { return next; } }
@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; } }
public Slot add( Slot entry ) { next = ( next != null ) ? next.add( entry ) : entry; if ( strongkey() != null && strongvalue() != null ) { return this; } else { return next; } }
public Slot relink( Slot rest ) { if ( strongkey() != null && strongvalue() != null ) { if ( rest == null && this.next == null ) { return this; } else { return copy( rest ); } } else { return rest; } }
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 add( Slot entry ) { next = ( next != null ) ? next.add( entry ) : entry; if ( strongkey() != null && strongvalue() != null ) { return this; } else { return next; } }
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; } }