Record Class ArticleMetadataResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.article.ArticleMetadataResponse
- Record Components:
imageUrl- article image URL
- All Implemented Interfaces:
GenericIntegrationResponse
public record ArticleMetadataResponse(String imageUrl)
extends Record
implements GenericIntegrationResponse
Article metadata extracted from an article page.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionArticleMetadataResponse(String imageUrl) Creates an instance of aArticleMetadataResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imageUrl()Returns the value of theimageUrlrecord component.booleanisEmpty()Returns true when no image URL was extracted.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArticleMetadataResponse
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when no image URL was extracted.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
imageUrl
-