Package dev.enola.model.enola.bookmark
Record Class Delicious
java.lang.Object
java.lang.Record
dev.enola.model.enola.bookmark.Delicious
public record Delicious(String title, List<String> tags, String url, String description, Instant created, Long others, String owner, String isPrivate)
extends Record
Model of del.icio.us JSON export format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thedescriptionrecord 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 theisPrivaterecord component.others()Returns the value of theothersrecord component.owner()Returns the value of theownerrecord component.tags()Returns the value of thetagsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Delicious
public Delicious(String title, List<String> tags, String url, String description, Instant created, Long others, String owner, String isPrivate) Creates an instance of aDeliciousrecord class.- Parameters:
title- the value for thetitlerecord componenttags- the value for thetagsrecord componenturl- the value for theurlrecord componentdescription- the value for thedescriptionrecord componentcreated- the value for thecreatedrecord componentothers- the value for theothersrecord componentowner- the value for theownerrecord componentisPrivate- the value for theisPrivaterecord 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
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
others
Returns the value of theothersrecord component.- Returns:
- the value of the
othersrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
isPrivate
Returns the value of theisPrivaterecord component.- Returns:
- the value of the
isPrivaterecord component
-