Record Class GroovyDGFileHelper.FileItem
java.lang.Object
java.lang.Record
de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileItem
- Enclosing class:
- GroovyDGFileHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentType
record component.final boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.final int
hashCode()
Returns a hash code value for this object.de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileIdRec
id()
Returns the value of theid
record component.de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.MODE
mode()
Returns the value of themode
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FileItem
public 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 aFileItem
record class.- Parameters:
file
- the value for thefile
record componentname
- the value for thename
record componentcontentType
- the value for thecontentType
record componentid
- the value for theid
record componentmode
- the value for themode
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
contentType
Returns the value of thecontentType
record component.- Returns:
- the value of the
contentType
record component
-
id
public de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.FileIdRec id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
mode
public de.uplanet.lucy.server.businesslogic.util.GroovyDGFileHelper.MODE mode()Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-