Record Class AbuseReportLimits
java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.report.AbuseReportLimits
public record AbuseReportLimits(int maxOpinionCommentsLength, int maxReportedMessageCount, int maxEvidenceMessageCount, int leadingContextMessageCount, int trailingContextMessageCount)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AbuseReportLimitsprivate final intThe field for theleadingContextMessageCountrecord component.private final intThe field for themaxEvidenceMessageCountrecord component.private final intThe field for themaxOpinionCommentsLengthrecord component.private final intThe field for themaxReportedMessageCountrecord component.private final intThe field for thetrailingContextMessageCountrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAbuseReportLimits(int maxOpinionCommentsLength, int maxReportedMessageCount, int maxEvidenceMessageCount, int leadingContextMessageCount, int trailingContextMessageCount) Creates an instance of aAbuseReportLimitsrecord 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.intReturns the value of theleadingContextMessageCountrecord component.intReturns the value of themaxEvidenceMessageCountrecord component.intReturns the value of themaxOpinionCommentsLengthrecord component.intReturns the value of themaxReportedMessageCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetrailingContextMessageCountrecord component.
-
Field Details
-
maxOpinionCommentsLength
private final int maxOpinionCommentsLengthThe field for themaxOpinionCommentsLengthrecord component. -
maxReportedMessageCount
private final int maxReportedMessageCountThe field for themaxReportedMessageCountrecord component. -
maxEvidenceMessageCount
private final int maxEvidenceMessageCountThe field for themaxEvidenceMessageCountrecord component. -
leadingContextMessageCount
private final int leadingContextMessageCountThe field for theleadingContextMessageCountrecord component. -
trailingContextMessageCount
private final int trailingContextMessageCountThe field for thetrailingContextMessageCountrecord component. -
DEFAULTS
-
-
Constructor Details
-
AbuseReportLimits
public AbuseReportLimits(int maxOpinionCommentsLength, int maxReportedMessageCount, int maxEvidenceMessageCount, int leadingContextMessageCount, int trailingContextMessageCount) Creates an instance of aAbuseReportLimitsrecord class.- Parameters:
maxOpinionCommentsLength- the value for themaxOpinionCommentsLengthrecord componentmaxReportedMessageCount- the value for themaxReportedMessageCountrecord componentmaxEvidenceMessageCount- the value for themaxEvidenceMessageCountrecord componentleadingContextMessageCount- the value for theleadingContextMessageCountrecord componenttrailingContextMessageCount- the value for thetrailingContextMessageCountrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxOpinionCommentsLength
public int maxOpinionCommentsLength()Returns the value of themaxOpinionCommentsLengthrecord component.- Returns:
- the value of the
maxOpinionCommentsLengthrecord component
-
maxReportedMessageCount
public int maxReportedMessageCount()Returns the value of themaxReportedMessageCountrecord component.- Returns:
- the value of the
maxReportedMessageCountrecord component
-
maxEvidenceMessageCount
public int maxEvidenceMessageCount()Returns the value of themaxEvidenceMessageCountrecord component.- Returns:
- the value of the
maxEvidenceMessageCountrecord component
-
leadingContextMessageCount
public int leadingContextMessageCount()Returns the value of theleadingContextMessageCountrecord component.- Returns:
- the value of the
leadingContextMessageCountrecord component
-
trailingContextMessageCount
public int trailingContextMessageCount()Returns the value of thetrailingContextMessageCountrecord component.- Returns:
- the value of the
trailingContextMessageCountrecord component
-