Companion object for the Fact trait.
Attributes
Members list
Type members
Classlikes
Represents a binary logical AND operation between two Fact instances.
Represents a binary logical AND operation between two Fact instances.
Value parameters
- left
-
The left-hand side
Factinstance of the AND operation. - messageFun
-
An optional message function to modify messages.
- right
-
The right-hand side
Factinstance of the AND operation.
Attributes
Represents a binary logical AND operation between two Fact instances. This is a factory object used to create Binary_& instances.
Represents a binary logical AND operation between two Fact instances, enforcing that the left-hand side Fact instance is yes.
Represents a binary logical AND operation between two Fact instances, enforcing that the left-hand side Fact instance is yes.
Value parameters
- left
-
The left-hand side
Factinstance of the AND operation. It must be ayesfact. - messageFun
-
An optional message function to modify the messages.
- right
-
The right-hand side
Factinstance of the AND operation.
Attributes
- Throws
-
IllegalArgumentException
If the
leftFactinstance is not ayesfact. - Companion
- object
- Supertypes
Represents a binary logical AND operation between two Fact instances, enforcing that the left-hand side Fact instance is yes. This is a factory object used to create Binary_&& instances.
Represents a leaf node in the Fact tree, which is a concrete Fact with known boolean values.
Represents a leaf node in the Fact tree, which is a concrete Fact with known boolean values.
Value parameters
- cause
-
An optional cause Throwable associated with the fact.
- factMessageArgs
-
Arguments used to format the rawFactMessage.
- isVacuousYes
-
Indicates whether the fact is a vacuous yes, which means true in a sense but without meaningful assertions.
- isYes
-
Indicates whether the fact is evaluated to true.
- midSentenceFactMessageArgs
-
Arguments used to format the rawMidSentenceFactMessage.
- midSentenceSimplifiedFactMessageArgs
-
Arguments used to format the rawMidSentenceSimplifiedFactMessage.
- prettifier
-
A prettifier used to format the messages when constructing failure messages.
- rawFactMessage
-
The raw message representing the fact.
- rawMidSentenceFactMessage
-
The raw mid-sentence message representing the fact.
- rawMidSentenceSimplifiedFactMessage
-
The raw mid-sentence simplified message representing the fact.
- rawSimplifiedFactMessage
-
The raw simplified message representing the fact.
- simplifiedFactMessageArgs
-
Arguments used to format the rawSimplifiedFactMessage.
Attributes
- Throws
-
IllegalArgumentException
if
isVacuousYesis true butisYesis false. - Supertypes
-
trait Serializabletrait Producttrait Equalsclass Factclass Objecttrait Matchableclass AnyShow all
Companion object for the No case class.
Companion object for the No case class.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
No.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Factclass Objecttrait Matchableclass AnyShow all
Represents a vacuous "Yes" Fact, which is a special case of Fact where the underlying Fact is No, but it is treated as Yes without meaningful assertions.
Represents a vacuous "Yes" Fact, which is a special case of Fact where the underlying Fact is No, but it is treated as Yes without meaningful assertions.
Value parameters
- underlying
-
The underlying Fact that is treated as No but represented as Yes.
Attributes
- Throws
-
IllegalArgumentException
if the underlying Fact's
isNoisfalse. - Companion
- object
- Supertypes
A companion object for the VacuousYes class, providing factory methods to create instances of VacuousYes fact.
A companion object for the VacuousYes class, providing factory methods to create instances of VacuousYes fact.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
VacuousYes.type