Package edu.suffolk.litlab.efsp.ecfcodes
Record Class CodesParser.DocTooBig
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.ecfcodes.CodesParser.DocTooBig
- All Implemented Interfaces:
CodesParser.FilingDocError
- Enclosing interface:
CodesParser
public static record CodesParser.DocTooBig(String docName, long docSize, long maxAllowed)
extends Record
implements CodesParser.FilingDocError
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocName()Returns the value of thedocNamerecord component.longdocSize()Returns the value of thedocSizerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxAllowedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocTooBig
Creates an instance of aDocTooBigrecord class.- Parameters:
docName- the value for thedocNamerecord componentdocSize- the value for thedocSizerecord componentmaxAllowed- the value for themaxAllowedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
docName
Returns the value of thedocNamerecord component.- Returns:
- the value of the
docNamerecord component
-
docSize
public long docSize()Returns the value of thedocSizerecord component.- Returns:
- the value of the
docSizerecord component
-
maxAllowed
public long maxAllowed()Returns the value of themaxAllowedrecord component.- Returns:
- the value of the
maxAllowedrecord component
-