1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-23 11:07:57 +01:00

Merge pull request #351 from adiaholic/docFix

Correct code example inside `UserTuneElement`.
This commit is contained in:
Florian Schmaus 2020-04-09 17:23:16 +02:00 committed by GitHub
commit 53c28f72ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,11 +161,16 @@ public final class UserTuneElement implements ExtensionElement {
/**
* This class defines a Builder class for {@link UserTuneElement}. <br>
* {@link UserTuneElement} instance can be obtained using the {@link #build()} method as follows. <br>
* UserTuneElement.Builder builder = new UserTuneElement.Builder();
* builder.setSource("Yessongs"); builder.setTitle("Heart of the Sunrise");
* UserTuneElement userTuneElement = builder.build(); <br>
* Values such as title, source, artist, length, source, track and uri can be set using their respective setters through {@link Builder}
* {@link UserTuneElement} instance can be obtained using the {@link #build()} method as follows. <br><br>
* <pre>
* {@code
* UserTuneElement.Builder builder = UserTuneElement.getBuilder();
* builder.setSource("Yessongs");
* builder.setTitle("Heart of the Sunrise");
* UserTuneElement userTuneElement = builder.build();
* }
* </pre>
* Values such as title, source, artist, length, source, track and uri can be set using their respective setters through {@link Builder}.
*/
public static final class Builder {
private String artist;