Record Class OpenBisModel.FileInfoContents
java.lang.Object
java.lang.Record
ch.ethz.sis.openbis.generic.excel.v3.model.OpenBisModel.FileInfoContents
- All Implemented Interfaces:
IFileInfo
- Enclosing class:
OpenBisModel
-
Constructor Summary
ConstructorsConstructorDescriptionFileInfoContents(String objectIdentifier, String filePath, byte[] contents, String originalPath) Creates an instance of aFileInfoContentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobjectIdentifierrecord component.Returns the value of theoriginalPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileInfoContents
public FileInfoContents(String objectIdentifier, String filePath, byte[] contents, String originalPath) Creates an instance of aFileInfoContentsrecord class.- Parameters:
objectIdentifier- the value for theobjectIdentifierrecord componentfilePath- the value for thefilePathrecord componentcontents- the value for thecontentsrecord componentoriginalPath- the value for theoriginalPathrecord component
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfaceIFileInfo- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
objectIdentifier
Returns the value of theobjectIdentifierrecord component.- Specified by:
objectIdentifierin interfaceIFileInfo- Returns:
- the value of the
objectIdentifierrecord component
-
filePath
Returns the value of thefilePathrecord component. -
contents
public byte[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
originalPath
Returns the value of theoriginalPathrecord component.- Specified by:
originalPathin interfaceIFileInfo- Returns:
- the value of the
originalPathrecord component
-