Record Class TurAssetItem
java.lang.Object
java.lang.Record
com.viglet.turing.api.asset.TurAssetItem
-
Constructor Summary
ConstructorsConstructorDescriptionTurAssetItem(String name, long size, String contentType, String lastModified, boolean directory) Creates an instance of aTurAssetItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.booleanReturns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastModifiedrecord component.name()Returns the value of thenamerecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TurAssetItem
public TurAssetItem(String name, long size, String contentType, String lastModified, boolean directory) Creates an instance of aTurAssetItemrecord class.- Parameters:
name- the value for thenamerecord componentsize- the value for thesizerecord componentcontentType- the value for thecontentTyperecord componentlastModified- the value for thelastModifiedrecord componentdirectory- the value for thedirectoryrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
lastModified
Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-
directory
public boolean directory()Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-