Package io.github.jbastgen.stemma.app.io
Record Class LogFiles.Content
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.io.LogFiles.Content
- Record Components:
text- the text, whole lines onlycut- the file is bigger than what was read: the beginning is missingtotalBytes- the size of the file
- Enclosing class:
LogFiles
What was read.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancut()Returns the value of thecutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
-
Constructor Details
-
Content
Creates an instance of aContentrecord class.- Parameters:
text- the value for thetextrecord componentcut- the value for thecutrecord componenttotalBytes- the value for thetotalBytesrecord 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 '=='. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
cut
public boolean cut()Returns the value of thecutrecord component.- Returns:
- the value of the
cutrecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-