/** @since 0.33 */ @Override public void invalidate(String message) { invalidate(); }
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 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; }
@Override public void dump(Node newNode, Node newChild, CharSequence reason) { if (reason != null) { dumpReplaceChild(newNode, newChild, reason); } else { if (newChild != null) { dumpNewChild(newNode, newChild); } else { dumpNewNode(newNode); } } } };
/** @since 0.8 or earlier */ public static JSONObjectBuilder object() { return new JSONObjectBuilder(); }
/** @since 0.8 or earlier */ public static JSONArrayBuilder array() { return new JSONArrayBuilder(); }
/** * Returns a {@link ValueProfile} that speculates on the exact class of a value. */ public static ValueProfile createClassProfile() { return new ExactClassValueProfile(); }
/** * Returns a {@link ValueProfile} that speculates on the object identity of a value. */ public static ValueProfile createIdentityProfile() { return new IdentityValueProfile(); }
/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object * identity of a value. */ public static PrimitiveValueProfile createPrimitiveProfile() { return new PrimitiveValueProfile(); }
/** * Returns a {@link ConditionProfile} that speculates on conditions to be never true or to be * never false. Condition profiles are intended to be used as part of if conditions. * * @see ConditionProfile * @see ConditionProfile#createCountingProfile() */ public static ConditionProfile createBinaryProfile() { return new BinaryConditionProfile(); } }
/** @since 0.8 or earlier */ public static JSONObjectBuilder object() { return new JSONObjectBuilder(); }
/** @since 0.8 or earlier */ public static JSONArrayBuilder array() { return new JSONArrayBuilder(); }
/** @since 0.33 */ @Override public void invalidate(String message) { invalidate(); }
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; }
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 static JSONObjectBuilder object() { return new JSONObjectBuilder(); }
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 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 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; }