Record Class FolderItemReferenceParser.Parsed
java.lang.Object
java.lang.Record
com.norconex.crawler.fs.fetch.impl.FolderItemReferenceParser.Parsed
- Enclosing class:
FolderItemReferenceParser
public static record FolderItemReferenceParser.Parsed(FolderItemReferenceParser.Kind kind, String host, String folderId, String itemId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParsed(FolderItemReferenceParser.Kind kind, String host, String folderId, String itemId) Creates an instance of aParsedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.folderId()Returns the value of thefolderIdrecord component.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.itemId()Returns the value of theitemIdrecord component.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Parsed
Creates an instance of aParsedrecord class.- Parameters:
kind- the value for thekindrecord componenthost- the value for thehostrecord componentfolderId- the value for thefolderIdrecord componentitemId- the value for theitemIdrecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
folderId
Returns the value of thefolderIdrecord component.- Returns:
- the value of the
folderIdrecord component
-
itemId
Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-