Record Class ContentInfo
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.bulk_ingester.processor.model.ContentInfo
- All Implemented Interfaces:
Serializable
public record ContentInfo(long contentSize, String encoding, String mimetype)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentInfo(long contentSize, String encoding, String mimetype) Creates an instance of aContentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontentSizerecord component.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mimetype()Returns the value of themimetyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContentInfo
Creates an instance of aContentInforecord class.- Parameters:
contentSize- the value for thecontentSizerecord componentencoding- the value for theencodingrecord componentmimetype- the value for themimetyperecord 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 '=='. -
contentSize
public long contentSize()Returns the value of thecontentSizerecord component.- Returns:
- the value of the
contentSizerecord component
-
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
mimetype
Returns the value of themimetyperecord component.- Returns:
- the value of the
mimetyperecord component
-