Record Class Moderation.Result.Categories
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Moderation.Result.Categories
- Enclosing class:
- Moderation.Result
public static record Moderation.Result.Categories(boolean hate, boolean hateThreatening, boolean harassment, boolean harassmentThreatening, boolean selfHarm, boolean selfHarmIntent, boolean selfHarmInstructions, boolean sexual, boolean sexualMinors, boolean violence, boolean violenceGraphic)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCategories(boolean hate, boolean hateThreatening, boolean harassment, boolean harassmentThreatening, boolean selfHarm, boolean selfHarmIntent, boolean selfHarmInstructions, boolean sexual, boolean sexualMinors, boolean violence, boolean violenceGraphic) Creates an instance of aCategoriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theharassmentrecord component.booleanReturns the value of theharassmentThreateningrecord component.final inthashCode()Returns a hash code value for this object.booleanhate()Returns the value of thehaterecord component.booleanReturns the value of thehateThreateningrecord component.booleanselfHarm()Returns the value of theselfHarmrecord component.booleanReturns the value of theselfHarmInstructionsrecord component.booleanReturns the value of theselfHarmIntentrecord component.booleansexual()Returns the value of thesexualrecord component.booleanReturns the value of thesexualMinorsrecord component.final StringtoString()Returns a string representation of this record class.booleanviolence()Returns the value of theviolencerecord component.booleanReturns the value of theviolenceGraphicrecord component.
-
Constructor Details
-
Categories
public Categories(boolean hate, boolean hateThreatening, boolean harassment, boolean harassmentThreatening, boolean selfHarm, boolean selfHarmIntent, boolean selfHarmInstructions, boolean sexual, boolean sexualMinors, boolean violence, boolean violenceGraphic) Creates an instance of aCategoriesrecord class.- Parameters:
hate- the value for thehaterecord componenthateThreatening- the value for thehateThreateningrecord componentharassment- the value for theharassmentrecord componentharassmentThreatening- the value for theharassmentThreateningrecord componentselfHarm- the value for theselfHarmrecord componentselfHarmIntent- the value for theselfHarmIntentrecord componentselfHarmInstructions- the value for theselfHarmInstructionsrecord componentsexual- the value for thesexualrecord componentsexualMinors- the value for thesexualMinorsrecord componentviolence- the value for theviolencerecord componentviolenceGraphic- the value for theviolenceGraphicrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared with '=='. -
hate
public boolean hate()Returns the value of thehaterecord component.- Returns:
- the value of the
haterecord component
-
hateThreatening
public boolean hateThreatening()Returns the value of thehateThreateningrecord component.- Returns:
- the value of the
hateThreateningrecord component
-
harassment
public boolean harassment()Returns the value of theharassmentrecord component.- Returns:
- the value of the
harassmentrecord component
-
harassmentThreatening
public boolean harassmentThreatening()Returns the value of theharassmentThreateningrecord component.- Returns:
- the value of the
harassmentThreateningrecord component
-
selfHarm
public boolean selfHarm()Returns the value of theselfHarmrecord component.- Returns:
- the value of the
selfHarmrecord component
-
selfHarmIntent
public boolean selfHarmIntent()Returns the value of theselfHarmIntentrecord component.- Returns:
- the value of the
selfHarmIntentrecord component
-
selfHarmInstructions
public boolean selfHarmInstructions()Returns the value of theselfHarmInstructionsrecord component.- Returns:
- the value of the
selfHarmInstructionsrecord component
-
sexual
public boolean sexual()Returns the value of thesexualrecord component.- Returns:
- the value of the
sexualrecord component
-
sexualMinors
public boolean sexualMinors()Returns the value of thesexualMinorsrecord component.- Returns:
- the value of the
sexualMinorsrecord component
-
violence
public boolean violence()Returns the value of theviolencerecord component.- Returns:
- the value of the
violencerecord component
-
violenceGraphic
public boolean violenceGraphic()Returns the value of theviolenceGraphicrecord component.- Returns:
- the value of the
violenceGraphicrecord component
-