static ConditionProfile create() { return new Binary(); } }
/** * Returns a {@link ConditionProfile} that speculates on conditions to be never * <code>true</code> or to be never <code>false</code>. Condition profiles are intended to be * used as part of if conditions. * * @see ConditionProfile * @see ConditionProfile#createCountingProfile() * @since 0.10 */ public static ConditionProfile createBinaryProfile() { if (Profile.isProfilingEnabled()) { return Binary.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a {@link ConditionProfile} that speculates on conditions to be never * <code>true</code> or to be never <code>false</code>. Condition profiles are intended to be * used as part of if conditions. * * @see ConditionProfile * @see ConditionProfile#createCountingProfile() * @since 0.10 */ public static ConditionProfile createBinaryProfile() { if (Profile.isProfilingEnabled()) { return Binary.create(); } else { return Disabled.INSTANCE; } }
static ConditionProfile create() { return new Binary(); } }