Record Class Bookmark
java.lang.Object
java.lang.Record
ch.martinelli.mite4java.domain.Bookmark
public record Bookmark(int id, String name, String query, String type, int accountId, Integer userId, OffsetDateTime createdAt, OffsetDateTime updatedAt)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBookmark(int id, String name, String query, String type, int accountId, Integer userId, OffsetDateTime createdAt, OffsetDateTime updatedAt) Creates an instance of aBookmarkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccountIdrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
Bookmark
public Bookmark(int id, String name, String query, String type, int accountId, Integer userId, OffsetDateTime createdAt, OffsetDateTime updatedAt) Creates an instance of aBookmarkrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentquery- the value for thequeryrecord componenttype- the value for thetyperecord componentaccountId- the value for theaccountIdrecord componentuserId- the value for theuserIdrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
accountId
public int accountId()Returns the value of theaccountIdrecord component.- Returns:
- the value of the
accountIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-