Record Class UrlHandle.Metadata
java.lang.Object
java.lang.Record
uno.anahata.asi.agi.resource.handle.UrlHandle.Metadata
- Record Components:
mimeType- The detected MIME type.lastModified- The remote last modified timestamp.exists- Whether the remote source is reachable.contentLength- The size of the remote resource in bytes.
- Enclosing class:
UrlHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecontentLengthrecord component.private final booleanThe field for theexistsrecord component.private final longThe field for thelastModifiedrecord component.private final StringThe field for themimeTyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecontentLengthrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexists()Returns the value of theexistsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastModifiedrecord component.mimeType()Returns the value of themimeTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
mimeType
-
lastModified
private final long lastModifiedThe field for thelastModifiedrecord component. -
exists
private final boolean existsThe field for theexistsrecord component. -
contentLength
private final long contentLengthThe field for thecontentLengthrecord component.
-
-
Constructor Details
-
Metadata
Creates an instance of aMetadatarecord class.- Parameters:
mimeType- the value for themimeTyperecord componentlastModified- the value for thelastModifiedrecord componentexists- the value for theexistsrecord componentcontentLength- the value for thecontentLengthrecord 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. -
mimeType
-
lastModified
public long lastModified()Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-
exists
-
contentLength
public long contentLength()Returns the value of thecontentLengthrecord component.- Returns:
- the value of the
contentLengthrecord component
-

