Class BinaryConditionProfile

All Implemented Interfaces:
Cloneable

public final class BinaryConditionProfile extends ConditionProfile
Utility class to speculate on conditions to be never true or to be never false. Condition profiles are intended to be used as part of if conditions.
See Also:
  • Method Details

    • profile

      public boolean profile(boolean value)
      Specified by:
      profile in class ConditionProfile
    • wasTrue

      public boolean wasTrue()
    • wasFalse

      public boolean wasFalse()
    • toString

      public String toString()
      Overrides:
      toString in class Object