Package org.openstreetmap.josm.data.osm
Class ChangesetDiscussionComment
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.ChangesetDiscussionComment
-
public class ChangesetDiscussionComment extends java.lang.Object
A comment in a public changeset discussion.- Since:
- 7704
-
-
Constructor Summary
Constructors Constructor Description ChangesetDiscussionComment(java.time.Instant date, User user)
Constructs a newChangesetDiscussionComment
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.Instant
getDate()
Replies date this comment was posted at.java.lang.String
getText()
Replies comment text.User
getUser()
Replies the user who posted the comment.void
setText(java.lang.String text)
Sets comment text.java.lang.String
toString()
-
-
-
Constructor Detail
-
ChangesetDiscussionComment
public ChangesetDiscussionComment(java.time.Instant date, User user)
Constructs a newChangesetDiscussionComment
.- Parameters:
date
- date this comment was posted atuser
- the user who posted the comment
-
-
Method Detail
-
getText
public final java.lang.String getText()
Replies comment text.- Returns:
- comment text
-
setText
public final void setText(java.lang.String text)
Sets comment text.- Parameters:
text
- comment text
-
getDate
public final java.time.Instant getDate()
Replies date this comment was posted at.- Returns:
- date this comment was posted at
-
getUser
public final User getUser()
Replies the user who posted the comment.- Returns:
- the user who posted the comment
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-