Record Class DrugInteractionChecker.Drug
java.lang.Object
java.lang.Record
org.episteme.natural.medicine.pharmacology.DrugInteractionChecker.Drug
- Enclosing class:
DrugInteractionChecker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theanticoagulantrecord component.Returns the value of thecyp450Metabolismrecord component.Returns the value of thedrugClassrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenericNamerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanReturns the value of theqtProlongingrecord component.booleansedating()Returns the value of thesedatingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Drug
public Drug(String name, String genericName, String drugClass, String cyp450Metabolism, boolean qtProlonging, boolean sedating, boolean anticoagulant) Creates an instance of aDrugrecord class.- Parameters:
name- the value for thenamerecord componentgenericName- the value for thegenericNamerecord componentdrugClass- the value for thedrugClassrecord componentcyp450Metabolism- the value for thecyp450Metabolismrecord componentqtProlonging- the value for theqtProlongingrecord componentsedating- the value for thesedatingrecord componentanticoagulant- the value for theanticoagulantrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
genericName
Returns the value of thegenericNamerecord component.- Returns:
- the value of the
genericNamerecord component
-
drugClass
Returns the value of thedrugClassrecord component.- Returns:
- the value of the
drugClassrecord component
-
cyp450Metabolism
Returns the value of thecyp450Metabolismrecord component.- Returns:
- the value of the
cyp450Metabolismrecord component
-
qtProlonging
public boolean qtProlonging()Returns the value of theqtProlongingrecord component.- Returns:
- the value of the
qtProlongingrecord component
-
sedating
public boolean sedating()Returns the value of thesedatingrecord component.- Returns:
- the value of the
sedatingrecord component
-
anticoagulant
public boolean anticoagulant()Returns the value of theanticoagulantrecord component.- Returns:
- the value of the
anticoagulantrecord component
-