Class ImmutablePriority
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Property
-
- net.fortuna.ical4j.model.property.Priority
-
- net.fortuna.ical4j.model.property.immutable.ImmutablePriority
-
- All Implemented Interfaces:
Serializable
,Comparable<Property>
,FluentProperty
,ImmutableProperty
public final class ImmutablePriority extends Priority implements ImmutableProperty
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.fortuna.ical4j.model.property.Priority
Priority.Factory
-
-
Field Summary
Fields Modifier and Type Field Description static Priority
HIGH
High priority.static Priority
LOW
Low priority.static Priority
MEDIUM
Medium priority.static Priority
UNDEFINED
Undefined priority.-
Fields inherited from class net.fortuna.ical4j.model.property.Priority
VALUE_HIGH, VALUE_LOW, VALUE_MEDIUM, VALUE_UNDEFINED
-
Fields inherited from class net.fortuna.ical4j.model.Property
ACKNOWLEDGED, ACTION, ATTACH, ATTENDEE, BUSYTYPE, CALENDAR_ADDRESS, CALSCALE, CATEGORIES, CLASS, COMMENT, COMPLETED, CONTACT, COUNTRY, CREATED, DESCRIPTION, DTEND, DTSTAMP, DTSTART, DUE, DURATION, EXDATE, EXPERIMENTAL_PREFIX, EXRULE, EXTENDED_ADDRESS, FREEBUSY, GEO, LAST_MODIFIED, LOCALITY, LOCATION, LOCATION_TYPE, METHOD, NAME, ORGANIZER, PARTICIPANT_TYPE, PERCENT_COMPLETE, POSTALCODE, PRIORITY, PRODID, PROXIMITY, RDATE, RECURRENCE_ID, REGION, RELATED_TO, REPEAT, REQUEST_STATUS, RESOURCE_TYPE, RESOURCES, RRULE, SEQUENCE, STATUS, STREET_ADDRESS, STRUCTURED_DATA, STYLED_DESCRIPTION, SUMMARY, TEL, TRANSP, TRIGGER, TZID, TZID_ALIAS_OF, TZNAME, TZOFFSETFROM, TZOFFSETTO, TZUNTIL, TZURL, UID, URL, VERSION
-
-
Constructor Summary
Constructors Constructor Description ImmutablePriority(int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Property>
Tadd(Parameter parameter)
Add a parameter to the property's parameter list.<T extends Property>
Tremove(Parameter parameter)
Remove a parameter from the property's parameter list.<T extends Property>
TremoveAll(String... parameterName)
Remove all parameters with the specified name from the property's parameter list.<T extends Property>
Treplace(Parameter parameter)
Add a parameter to the property's parameter list whilst removing all other parameters with the same name.void
setValue(String aValue)
Sets the current value of the property.-
Methods inherited from class net.fortuna.ical4j.model.property.Priority
getLevel, getValue, newFactory, setLevel, validate
-
Methods inherited from class net.fortuna.ical4j.model.Property
compareTo, copy, equals, getFluentTarget, getName, getParameter, getParameterList, getParameters, getRequiredParameter, hashCode, setParameters, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.model.FluentProperty
withParameter
-
Methods inherited from interface net.fortuna.ical4j.model.property.immutable.ImmutableProperty
throwException
-
-
-
-
Method Detail
-
add
public <T extends Property> T add(Parameter parameter)
Description copied from class:Property
Add a parameter to the property's parameter list.- Specified by:
add
in interfaceImmutableProperty
- Overrides:
add
in classProperty
- Parameters:
parameter
- the parameter to add- Returns:
- a reference to the property to support method chaining
-
remove
public <T extends Property> T remove(Parameter parameter)
Description copied from class:Property
Remove a parameter from the property's parameter list.- Specified by:
remove
in interfaceImmutableProperty
- Overrides:
remove
in classProperty
- Parameters:
parameter
- the parameter to remove- Returns:
- a reference to the property to support method chaining
-
removeAll
public <T extends Property> T removeAll(String... parameterName)
Description copied from class:Property
Remove all parameters with the specified name from the property's parameter list.- Specified by:
removeAll
in interfaceImmutableProperty
- Overrides:
removeAll
in classProperty
- Parameters:
parameterName
- the name of parameters to remove- Returns:
- a reference to the property to support method chaining
-
replace
public <T extends Property> T replace(Parameter parameter)
Description copied from class:Property
Add a parameter to the property's parameter list whilst removing all other parameters with the same name.- Specified by:
replace
in interfaceImmutableProperty
- Overrides:
replace
in classProperty
- Parameters:
parameter
- the parameter to add- Returns:
- a reference to the property to support method chaining
-
-