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 aCategories
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theharassment
record component.boolean
Returns the value of theharassmentThreatening
record component.final int
hashCode()
Returns a hash code value for this object.boolean
hate()
Returns the value of thehate
record component.boolean
Returns the value of thehateThreatening
record component.boolean
selfHarm()
Returns the value of theselfHarm
record component.boolean
Returns the value of theselfHarmInstructions
record component.boolean
Returns the value of theselfHarmIntent
record component.boolean
sexual()
Returns the value of thesexual
record component.boolean
Returns the value of thesexualMinors
record component.final String
toString()
Returns a string representation of this record class.boolean
violence()
Returns the value of theviolence
record component.boolean
Returns the value of theviolenceGraphic
record 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 aCategories
record class.- Parameters:
hate
- the value for thehate
record componenthateThreatening
- the value for thehateThreatening
record componentharassment
- the value for theharassment
record componentharassmentThreatening
- the value for theharassmentThreatening
record componentselfHarm
- the value for theselfHarm
record componentselfHarmIntent
- the value for theselfHarmIntent
record componentselfHarmInstructions
- the value for theselfHarmInstructions
record componentsexual
- the value for thesexual
record componentsexualMinors
- the value for thesexualMinors
record componentviolence
- the value for theviolence
record componentviolenceGraphic
- the value for theviolenceGraphic
record 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 thehate
record component.- Returns:
- the value of the
hate
record component
-
hateThreatening
public boolean hateThreatening()Returns the value of thehateThreatening
record component.- Returns:
- the value of the
hateThreatening
record component
-
harassment
public boolean harassment()Returns the value of theharassment
record component.- Returns:
- the value of the
harassment
record component
-
harassmentThreatening
public boolean harassmentThreatening()Returns the value of theharassmentThreatening
record component.- Returns:
- the value of the
harassmentThreatening
record component
-
selfHarm
public boolean selfHarm()Returns the value of theselfHarm
record component.- Returns:
- the value of the
selfHarm
record component
-
selfHarmIntent
public boolean selfHarmIntent()Returns the value of theselfHarmIntent
record component.- Returns:
- the value of the
selfHarmIntent
record component
-
selfHarmInstructions
public boolean selfHarmInstructions()Returns the value of theselfHarmInstructions
record component.- Returns:
- the value of the
selfHarmInstructions
record component
-
sexual
public boolean sexual()Returns the value of thesexual
record component.- Returns:
- the value of the
sexual
record component
-
sexualMinors
public boolean sexualMinors()Returns the value of thesexualMinors
record component.- Returns:
- the value of the
sexualMinors
record component
-
violence
public boolean violence()Returns the value of theviolence
record component.- Returns:
- the value of the
violence
record component
-
violenceGraphic
public boolean violenceGraphic()Returns the value of theviolenceGraphic
record component.- Returns:
- the value of the
violenceGraphic
record component
-