public byte profile(byte value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Byte && (byte) snapshot == value) { return (byte) snapshot; } else { cacheMiss(value); } } return value; }
public short profile(short value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Short && (short) snapshot == value) { return (short) snapshot; } else { cacheMiss(value); } } return value; }
public long profile(long value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Long && (long) snapshot == value) { return (long) snapshot; } else { cacheMiss(value); } } return value; }
public int profile(int value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Integer && (int) snapshot == value) { return (int) snapshot; } else { cacheMiss(value); } } return value; }
public boolean profile(boolean value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Boolean && (boolean) snapshot == value) { return (boolean) snapshot; } else { cacheMiss(value); } } return value; }
public char profile(char value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Character && (char) snapshot == value) { return (char) snapshot; } else { cacheMiss(value); } } return value; }
public double profile(double value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Double && exactCompare((double) snapshot, value)) { return (double) snapshot; } else { cacheMiss(value); } } return value; }
public float profile(float value) { Object snapshot = this.cachedValue; if (snapshot != GENERIC) { if (snapshot instanceof Float && exactCompare((float) snapshot, value)) { return (float) snapshot; } else { cacheMiss(value); } } return value; }
return snapshot; cacheMiss(value);