Record Class PlayerNote
java.lang.Object
java.lang.Record
dev.plex.api.note.PlayerNote
- Record Components:
id- player-local note IDplayer- UUID of the player the note belongs tocontent- note content- UUID of the author, ornullfor consoletimestamp- date and time the note was written
public record PlayerNote(int id, UUID player, String content, @Nullable UUID author, ZonedDateTime timestamp)
extends Record
A note attached to a Plex player.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerNote(int id, UUID player, String content, @Nullable UUID author, ZonedDateTime timestamp) Creates an instance of aPlayerNoterecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable UUIDauthor()Returns the value of theauthorrecord component.content()Returns the value of thecontentrecord 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.player()Returns the value of theplayerrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerNote
public PlayerNote(int id, UUID player, String content, @Nullable @Nullable UUID author, ZonedDateTime timestamp) Creates an instance of aPlayerNoterecord class.
-
-
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
-
player
-
content
-
author
-
timestamp
-