Pull to refresh
0
0
Send message
Угу, я тоже долго пытался понять ту фразу пока не увидел оригинал и пошел проверять срц…
public final class Integer

public static Integer valueOf(int i) {
        if (i >= IntegerCache.low && i <= IntegerCache.high)
            return IntegerCache.cache[i + (-IntegerCache.low)];
        return new Integer(i);
    }


private static class IntegerCache {
        static final int low = -128;
        static final int high;
        static final Integer cache[];

        static {
            // high value may be configured by property
            int h = 127;
....


Information

Rating
Does not participate
Registered
Activity