feat(webcal): Made method name clear

This commit is contained in:
Zihlu Wang
2023-08-07 11:56:44 +08:00
parent 645064e774
commit 7e73b9e77f
@@ -166,16 +166,27 @@ public final class WebCalendar {
}
/**
* Add an event to the web calendar.
* Add an node to the web calendar.
*
* @param node the calendar component or event to be added
* @return the WebCalendar object
*/
public WebCalendar addEvent(WebCalendarNode node) {
public WebCalendar addNode(WebCalendarNode node) {
this.nodes.add(node);
return this;
}
/**
* Add an event to the web calendar.
*
* @param event the calendar component or event to be added
* @return the WebCalendar object
*/
public WebCalendar addEvent(WebCalendarEvent event) {
this.nodes.add(event);
return this;
}
/**
* Generate and resolve the iCalendar string for the web calendar.
*