Top Methods
net.fortuna.ical4j.model

public Interface ComponentContainer<C extends Component>

extends ComponentListAccessor<C extends Component>
Known Direct Subinterfaces
net.fortuna.ical4j.model.ParticipantsAccessor, net.fortuna.ical4j.model.ResourcesAccessor, net.fortuna.ical4j.model.LocationsAccessor, net.fortuna.ical4j.model.AlarmsAccessor
Known Direct Implementers
net.fortuna.ical4j.model.ComponentGroup, net.fortuna.ical4j.model.component.Participant, net.fortuna.ical4j.model.component.VAlarm, net.fortuna.ical4j.model.component.VAvailability, net.fortuna.ical4j.model.component.VEvent, net.fortuna.ical4j.model.component.VFreeBusy, net.fortuna.ical4j.model.component.VJournal, net.fortuna.ical4j.model.component.VTimeZone, net.fortuna.ical4j.model.component.VToDo, net.fortuna.ical4j.model.Calendar
Imports
java.util.function.BiFunction

Method Summary

Modifier and TypeMethod and Description
public default <T extends ComponentContainer<C>> T

Returns:

a reference to this component to support method chaining
add
(C
the subcomponent to add
component
)

Add a subcomponent to this component.

public default <T extends ComponentContainer<C>> T

Returns:

a reference to this component to support method chaining
remove
(C
the subcomponent to remove
component
)

Remove a subcomponent from this component.

public default <T extends ComponentContainer<C>> T

Returns:

a reference to the component to support method chaining
replace
(C
the subcomponent to add
component
)

Add a subcomponent to this component whilst removing all other subcomponents with the same component name.

public void
public default <T extends ComponentContainer<C>> T
with(BiFunction<T, C, T> f, C c)

A functional method used to apply a component to a container in an undefined way.

Inherited from net.fortuna.ical4j.model.ComponentListAccessor:
getComponentgetComponentListgetComponents

Method Detail

addback to summary
public default <T extends ComponentContainer<C>> T add(C component)

Add a subcomponent to this component.

Parameters
component:C

the subcomponent to add

Returns:T

a reference to this component to support method chaining

removeback to summary
public default <T extends ComponentContainer<C>> T remove(C component)

Remove a subcomponent from this component.

Parameters
component:C

the subcomponent to remove

Returns:T

a reference to this component to support method chaining

replaceback to summary
public default <T extends ComponentContainer<C>> T replace(C component)

Add a subcomponent to this component whilst removing all other subcomponents with the same component name.

Parameters
component:C

the subcomponent to add

Returns:T

a reference to the component to support method chaining

setComponentListback to summary
public void setComponentList(ComponentList<C> components)
withback to summary
public default <T extends ComponentContainer<C>> T with(BiFunction<T, C, T> f, C c)

A functional method used to apply a component to a container in an undefined way. For example, a null check can be introduced as follows: container.with((container, component) -> if (component != null) container.add(component); return container;)