Record Class LogicSolver.Proposition
java.lang.Object
java.lang.Record
org.episteme.social.philosophy.LogicSolver.Proposition
- Record Components:
subject- Subject term (S)predicate- Predicate term (P)isAffirmative- True if quality is affirmative, false if negativeisUniversal- True if quantity is universal, false if particular
- All Implemented Interfaces:
Serializable
- Enclosing class:
LogicSolver
public static record LogicSolver.Proposition(String subject, String predicate, boolean isAffirmative, boolean isUniversal)
extends Record
implements Serializable
Represents a categorical proposition (e.g., "All humans are mortal").
- Version:
- 6.0, July 21, 2014
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProposition(String subject, String predicate, boolean isAffirmative, boolean isUniversal) Creates an instance of aPropositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAffirmativerecord component.booleanReturns the value of theisUniversalrecord component.Returns the value of thepredicaterecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Proposition
Creates an instance of aPropositionrecord class.- Parameters:
subject- the value for thesubjectrecord componentpredicate- the value for thepredicaterecord componentisAffirmative- the value for theisAffirmativerecord componentisUniversal- the value for theisUniversalrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
subject
-
predicate
-
isAffirmative
public boolean isAffirmative()Returns the value of theisAffirmativerecord component.- Returns:
- the value of the
isAffirmativerecord component
-
isUniversal
public boolean isUniversal()Returns the value of theisUniversalrecord component.- Returns:
- the value of the
isUniversalrecord component
-