Top Fields Methods
net.fortuna.ical4j.model

public Interface PropertyContainer

extends PropertyListAccessor
Known Direct Subinterfaces
net.fortuna.ical4j.model.RecurrenceSupport, net.fortuna.ical4j.model.DateTimePropertyAccessor, net.fortuna.ical4j.model.DescriptivePropertyAccessor, net.fortuna.ical4j.model.TimeZonePropertyAccessor, net.fortuna.ical4j.model.RelationshipPropertyAccessor, net.fortuna.ical4j.model.CalendarPropertyAccessor, net.fortuna.ical4j.model.ChangeManagementPropertyAccessor
Known Direct Implementers
net.fortuna.ical4j.model.Calendar, net.fortuna.ical4j.model.Component
Imports
org.jetbrains.annotations.NotNull, java.util.Collection, java.util.function.BiFunction, .Predicate

Field Summary

Modifier and TypeField and Description
public static final BiFunction<PropertyContainer, Property, PropertyContainer>

Method Summary

Modifier and TypeMethod and Description
public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
add
(@NotNull Property
the property to add
property
)

Add a property to the container.

public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
addAll
(@NotNull Collection<Property>
a collection of properties to add
properties
)

Add multiple properties to the container.

public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
remove
(Property
the property to remove
property
)

Remove a property from the container.

public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
removeAll
(String...
name of the properties to remove
name
)

Remove all properties with the matching name.

public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
removeIf
(Predicate<Property>
a filter predicate for matching
filter
)

Remove all properties matching the specified filter.

public default <T extends PropertyContainer> T

Returns:

a reference to the container to support method chaining
replace
(Property
the property to add
property
)

Add a property to the container whilst removing all other properties with the same property name.

public void
public default <T extends PropertyContainer, P> T
with(BiFunction<T, P, T> f, P p)

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

Inherited from net.fortuna.ical4j.model.PropertyListAccessor:
getPropertiesgetPropertygetPropertygetPropertyListgetRequiredPropertygetRequiredProperty

Field Detail

ADD_IF_NOT_PRESENTback to summary
public static final BiFunction<PropertyContainer, Property, PropertyContainer> ADD_IF_NOT_PRESENT

Method Detail

addback to summary
public default <T extends PropertyContainer> T add(@NotNull Property property)

Add a property to the container.

Parameters
property:@NotNull Property

the property to add

Returns:T

a reference to the container to support method chaining

addAllback to summary
public default <T extends PropertyContainer> T addAll(@NotNull Collection<Property> properties)

Add multiple properties to the container.

Parameters
properties:@NotNull Collection<Property>

a collection of properties to add

Returns:T

a reference to the container to support method chaining

removeback to summary
public default <T extends PropertyContainer> T remove(Property property)

Remove a property from the container.

Parameters
property:Property

the property to remove

Returns:T

a reference to the container to support method chaining

removeAllback to summary
public default <T extends PropertyContainer> T removeAll(String... name)

Remove all properties with the matching name.

Parameters
name:String[]

name of the properties to remove

Returns:T

a reference to the container to support method chaining

removeIfback to summary
public default <T extends PropertyContainer> T removeIf(Predicate<Property> filter)

Remove all properties matching the specified filter.

Parameters
filter:Predicate<Property>

a filter predicate for matching

Returns:T

a reference to the container to support method chaining

replaceback to summary
public default <T extends PropertyContainer> T replace(Property property)

Add a property to the container whilst removing all other properties with the same property name.

Parameters
property:Property

the property to add

Returns:T

a reference to the container to support method chaining

setPropertyListback to summary
public void setPropertyList(PropertyList properties)
withback to summary
public default <T extends PropertyContainer, P> T with(BiFunction<T, P, T> f, P p)

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