/** Convert java int to a {@link LuaValue}. * * @param i int value to convert * @return {@link LuaInteger} instance, possibly pooled, whose value is i */ public static LuaInteger valueOf(int i) { return LuaInteger.valueOf(i); }
public static LuaInteger valueOf(int i) { return i<=255 && i>=-256? intValues[i+256]: new LuaInteger(i); };
@Override public int strcmp( LuaString rhs ) { typerror("attempt to compare number with string"); return 0; }
public int keyindex( int mask ) { return hashmod( LuaInteger.hashCode( key ), mask ); }
@Override public int keyindex( int mask ) { return hashmod( LuaInteger.hashCode( key ), mask ); }
@Override public LuaValue call() { return LuaInteger.valueOf(mStatusCode); } });
public static LuaInteger valueOf(int i) { return i<=255 && i>=-256? intValues[i+256]: new LuaInteger(i); };
public int keyindex( int mask ) { return hashmod( LuaInteger.hashCode( key ), mask ); }
public int strcmp( LuaString rhs ) { typerror("attempt to compare number with string"); return 0; }
/** Convert java int to a {@link LuaValue}. * * @param i int value to convert * @return {@link LuaInteger} instance, possibly pooled, whose value is i */ public static LuaInteger valueOf(int i) { return LuaInteger.valueOf(i); }
public static LuaInteger valueOf(int i) { return i<=255 && i>=-256? intValues[i+256]: new LuaInteger(i); }
LuaValue v; if ( ( v = oldArray[ i++ ] ) != null ) { int slot = hashmod( LuaInteger.hashCode( i ), newHashMask ); Slot newEntry; if ( m_metatable != null ) {
public int strcmp( LuaString rhs ) { typerror("attempt to compare number with string"); return 0; }
/** Convert java int to a {@link LuaValue}. * * @param i int value to convert * @return {@link LuaInteger} instance, possibly pooled, whose value is i */ public static LuaInteger valueOf(int i) { return LuaInteger.valueOf(i); }
/** Return a LuaNumber that represents the value provided * @param l long value to represent. * @return LuaNumber that is eithe LuaInteger or LuaDouble representing l * @see LuaValue#valueOf(int) * @see LuaValue#valueOf(double) */ public static LuaNumber valueOf(long l) { int i = (int) l; return l==i? (i<=255 && i>=-256? intValues[i+256]: (LuaNumber) new LuaInteger(i)): (LuaNumber) LuaDouble.valueOf(l); }
LuaValue v; if ( ( v = oldArray[ i++ ] ) != null ) { int slot = hashmod( LuaInteger.hashCode( i ), newHashMask ); Slot newEntry; if ( m_metatable != null ) {
@Override protected LuaNumber getLong(long value) { return LuaInteger.valueOf(value); }
/** Return a LuaNumber that represents the value provided * @param l long value to represent. * @return LuaNumber that is eithe LuaInteger or LuaDouble representing l * @see LuaValue#valueOf(int) * @see LuaValue#valueOf(double) */ public static LuaNumber valueOf(long l) { int i = (int) l; return l==i? (i<=255 && i>=-256? intValues[i+256]: (LuaNumber) new LuaInteger(i)): (LuaNumber) LuaDouble.valueOf(l); }
LuaValue v; if ( ( v = oldArray[ i++ ] ) != null ) { int slot = hashmod( LuaInteger.hashCode( i ), newHashMask ); Slot newEntry; if ( m_metatable != null ) {
@Override public LuaValue getLuaValue(LuaInstance instance) { return LuaInteger.valueOf(value); }