Package com.tnsai.tools.scraping
Record Class ActorRegistry.ActorInfo
java.lang.Object
java.lang.Record
com.tnsai.tools.scraping.ActorRegistry.ActorInfo
- Enclosing class:
ActorRegistry
public static record ActorRegistry.ActorInfo(String actorId, ActorRegistry.Category category, String title, String description, Map<String,String> inputSchema)
extends Record
Actor metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactorId()Returns the value of theactorIdrecord component.category()Returns the value of thecategoryrecord component.Returns the value of thedescriptionrecord component.Get actor ID in URL-safe format (/ replaced with ~).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 theinputSchemarecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActorInfo
public ActorInfo(String actorId, ActorRegistry.Category category, String title, String description, Map<String, String> inputSchema) Creates an instance of aActorInforecord class.- Parameters:
actorId- the value for theactorIdrecord componentcategory- the value for thecategoryrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentinputSchema- the value for theinputSchemarecord component
-
-
Method Details
-
encodedId
Get actor ID in URL-safe format (/ replaced with ~). -
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). -
actorId
Returns the value of theactorIdrecord component.- Returns:
- the value of the
actorIdrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inputSchema
Returns the value of theinputSchemarecord component.- Returns:
- the value of the
inputSchemarecord component
-