Record Class JsonUtils.JsonStats
java.lang.Object
java.lang.Record
top.magstar.framework.JsonUtils.JsonStats
-
Constructor Summary
ConstructorsConstructorDescriptionJsonStats(int length, boolean valid, int objectCount, int arrayCount) Creates an instance of aJsonStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearrayCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.intReturns the value of theobjectCountrecord component.@NotNull StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
JsonStats
public JsonStats(int length, boolean valid, int objectCount, int arrayCount) Creates an instance of aJsonStatsrecord class.- Parameters:
length- the value for thelengthrecord componentvalid- the value for thevalidrecord componentobjectCount- the value for theobjectCountrecord componentarrayCount- the value for thearrayCountrecord 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 '=='. -
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-
objectCount
public int objectCount()Returns the value of theobjectCountrecord component.- Returns:
- the value of the
objectCountrecord component
-
arrayCount
public int arrayCount()Returns the value of thearrayCountrecord component.- Returns:
- the value of the
arrayCountrecord component
-