Record Class GroovyDGFileHelper.FileItem
java.lang.Object
java.lang.Record
de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileItem
- Enclosing class:
- GroovyDGFileHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileIdRecid()Returns the value of theidrecord component.de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.MODEmode()Returns the value of themoderecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
FileItempublic FileItem(File file, String name, String contentType, de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileIdRec id, de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.MODE mode) Creates an instance of aFileItemrecord class.- Parameters:
- file- the value for the- filerecord component
- name- the value for the- namerecord component
- contentType- the value for the- contentTyperecord component
- id- the value for the- idrecord component
- mode- the value for the- moderecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
fileReturns the value of thefilerecord component.- Returns:
- the value of the filerecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
contentTypeReturns the value of thecontentTyperecord component.- Returns:
- the value of the contentTyperecord component
 
- 
idpublic de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileIdRec id()Returns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
modepublic de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.MODE mode()Returns the value of themoderecord component.- Returns:
- the value of the moderecord component
 
 
-