Top Deprecated By Reference
ical4j 4.1.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
net.fortuna.ical4j.data.CalendarBuilder(CalendarParser
a custom calendar parser
parser
,
PropertyFactoryRegistry propertyFactoryRegistry, ParameterFactoryRegistry parameterFactoryRegistry, TimeZoneRegistry
a custom timezone registry
tzRegistry
)

net.fortuna.ical4j.data.CalendarBuilder(CalendarParser
a custom calendar parser
parser
,
Supplier<List<ParameterFactory<?>>> parameterFactorySupplier, Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ComponentFactory<?>>> componentFactorySupplier, TimeZoneRegistry
a custom timezone registry
tzRegistry
)

use CalendarBuilder#CalendarBuilder(CalendarParser, ContentHandlerContext, TimeZoneRegistry)

net.fortuna.ical4j.filter.Filter<T>

Most of the functionality of this class can now be achieved via lambda expressions using Component Filters

net.fortuna.ical4j.model.AbstractContentFactory.registerExtendedFactory(String key, T factory)

Define extensions in META-INF/services/net.fortuna.ical4j.model.[Type]Factory

net.fortuna.ical4j.model.CalendarDateFormatFactory

adoption of the new date/time API means formatting is now supported via java.time.format.DateTimeFormatter

Returns:

a component or null if no matching component found
net.fortuna.ical4j.model.ComponentList.getComponent
(final String
name of component to return
aName
)

use ComponentList#getFirst(String)

Returns:

a list of components with the matching name
net.fortuna.ical4j.model.ComponentList.getComponents
(final String...
name of components to return
name
)

use ContentCollection#get(String...)

net.fortuna.ical4j.model.Date

Use java.time.LocalDate for iCalendar DATE representations.

net.fortuna.ical4j.model.DateRange

We can no longer use DateRange to compare dates reliably due to supporting incompatible temporal types. Use org.threeten.extra.Interval instead.

net.fortuna.ical4j.model.Iso8601

Replaced with new Java Date/Time API implementation

net.fortuna.ical4j.model.LocationTypeList

replaced with standard Java collections.

net.fortuna.ical4j.model.NumberList(int
the minimum allowable value
minValue
,
int
the maximum allowable value
maxValue
,
boolean
indicates whether negative values are allowed
allowsNegativeValues
)

use NumberList#NumberList(ValueRange, boolean)

net.fortuna.ical4j.model.NumberList(final String
a string representation of a number list
aString
,
int
the minimum allowable value
minValue
,
int
the maximum allowable value
maxValue
,
boolean
indicates whether negative values are allowed
allowsNegativeValues
)

use NumberList#NumberList(String, ValueRange, boolean)

Returns:

the builder instance
net.fortuna.ical4j.model.ParameterBuilder.factories
(List<ParameterFactory<?>>
a list of parameter factories
factories
)

preference the constructor option for specifying factories

Returns:

the first matching parameter or null if no matching parameters
net.fortuna.ical4j.model.ParameterList.getParameter
(final String
name of the parameter
aName
)

use ParameterList#getFirst(String)

Returns:

a parameter list
net.fortuna.ical4j.model.ParameterList.getParameters
(final String
name of parameters to return
name
)

use ParameterList#get(String...)

net.fortuna.ical4j.model.Period(final DateTime
the start date of the period
start
,
final Dur
the duration of the period
duration
)

Returns:

true if the specified date occurs within the current period
net.fortuna.ical4j.model.Period.includes
(final Date
a date to test for inclusion
date
,
final boolean
indicates if the start and end of the period are included in the test
inclusive
)

use Period#includes(Temporal) instead.

Returns:

the builder instance
net.fortuna.ical4j.model.PropertyBuilder.factories
(List<PropertyFactory<?>>
a list of property factories
factories
)

preference the constructor option for specifying factories

Returns:

a property list
net.fortuna.ical4j.model.PropertyList.getProperties
(final String
name of properties to return
name
)

use PropertyList#get(String...)

Returns:

a property or null if no matching property found
net.fortuna.ical4j.model.PropertyList.getProperty
(final String
name of property to return
aName
)

use PropertyList#getFirst(String)

net.fortuna.ical4j.model.Recur(final String
a recurrence frequency string
frequency
,
final T
maximum recurrence date
until
)

net.fortuna.ical4j.model.Recur(final String
a recurrence frequency string
frequency
,
final int
maximum recurrence count
count
)

net.fortuna.ical4j.model.Recur.setCount(final int
The count to set.
count
)

will be removed in a future version to support immutable pattern.

net.fortuna.ical4j.model.Recur.setFrequency(final String
The frequency to set.
frequency
)

will be removed in a future version to support immutable pattern.

net.fortuna.ical4j.model.Recur.setInterval(final int
The interval to set.
interval
)

will be removed in a future version to support immutable pattern.

net.fortuna.ical4j.model.Recur.setUntil(final T
The until to set.
until
)

will be removed in a future version to support immutable pattern.

net.fortuna.ical4j.model.Recur.setWeekStartDay(final WeekDay
The weekStartDay to set.
weekStartDay
)

will be removed in a future version to support immutable pattern.

Returns:

the end of the duration as a date
net.fortuna.ical4j.model.TemporalAmountAdapter.getTime
(final Date
the date to start the duration
start
)

use getDuration().addTo(start), where start is a Temporal

net.fortuna.ical4j.model.Time

Use java.time.LocalTime for iCalendar TIME representations.

Returns:

the ACTION property or null if not specified
net.fortuna.ical4j.model.component.VAlarm.getAction
()

use VAlarm#getProperty(String)

Returns:

the DURATION property or null if not specified
net.fortuna.ical4j.model.component.VAlarm.getDuration
()

use VAlarm#getProperty(String)

Returns:

the REPEAT property or null if not specified
net.fortuna.ical4j.model.component.VAlarm.getRepeat
()

use VAlarm#getProperty(String)

Returns:

the TRIGGER property or null if not specified
net.fortuna.ical4j.model.component.VAlarm.getTrigger
()

use VAlarm#getProperty(String)

Returns:

a single non-recurring event instance for the specified date, or null if the event doesn't occur on the specified date
net.fortuna.ical4j.model.component.VEvent.getOccurrence
(final T
a date on which the occurence should occur
date
)

use RecurrenceSupport#getOccurrences(Period)

Returns:

The DtStart object representation of the start Date
net.fortuna.ical4j.model.component.VEvent.getStartDate
()

use DateTimePropertyAccessor#getDateTimeStart()

Returns:

the CONTACT property or null if not specified
net.fortuna.ical4j.model.component.VFreeBusy.getContact
()

use VFreeBusy#getProperty(String)

Returns:

the DTSTAMP property or null if not specified
net.fortuna.ical4j.model.component.VFreeBusy.getDateStamp
()

use VFreeBusy#getProperty(String)

Returns:

the ORGANIZER property or null if not specified
net.fortuna.ical4j.model.component.VFreeBusy.getOrganizer
()

use VFreeBusy#getProperty(String)

Returns:

the URL property or null if not specified
net.fortuna.ical4j.model.component.VFreeBusy.getUrl
()

use VFreeBusy#getProperty(String)

Returns:

The DtStart object representation of the start Date
net.fortuna.ical4j.model.component.VJournal.getStartDate
()

use DateTimePropertyAccessor#getDateTimeStart()

Returns:

The DtStart object representation of the start Date
net.fortuna.ical4j.model.component.VToDo.getStartDate
()

use DateTimePropertyAccessor#getDateTimeStart()

net.fortuna.ical4j.model.property.DtEnd(final T
the time of the DtEnd
time
,
final boolean
specifies whether time is UTC
utc
)

UTC time is now specified via the generic type (i.e. java.time.Instant)

net.fortuna.ical4j.model.property.DtStart(final T
the time of the DtStart
time
,
final boolean
specifies whether time is UTC
utc
)

UTC time is now specified via the generic type (i.e. java.time.Instant)

net.fortuna.ical4j.model.property.Duration(final Dur
a duration value
duration
)

net.fortuna.ical4j.model.property.Duration(final ParameterList
a list of parameters for this component
aList
,
final Dur
a duration value
duration
)

net.fortuna.ical4j.model.property.Duration(final Date
the starting time for the duration
start
,
final Date
the end time for the duration
end
)

use Duration#Duration(Temporal, Temporal)

Returns:

the text value of the property
net.fortuna.ical4j.model.property.Link.getText
()

use Link#getValue()

net.fortuna.ical4j.model.property.Trigger(final Dur
a duration in milliseconds
duration
)

net.fortuna.ical4j.model.property.Trigger(final ParameterList
a list of parameters for this component
aList
,
final Dur
a duration in milliseconds
duration
)

net.fortuna.ical4j.model.property.TzOffsetFrom(final UtcOffset
a timezone offset in milliseconds
anOffset
)

net.fortuna.ical4j.model.property.TzOffsetFrom(final ParameterList
a list of parameters for this component
aList
,
final UtcOffset
a timezone offset in milliseconds
anOffset
)

net.fortuna.ical4j.model.property.TzOffsetTo(final UtcOffset
a timezone offset in milliseconds
anOffset
)

net.fortuna.ical4j.model.property.TzOffsetTo(final ParameterList
a list of parameters for this component
aList
,
final UtcOffset
a timezone offset in milliseconds
anOffset
)

Returns:

a transformed calendar object
net.fortuna.ical4j.transform.Transformer.transform
(final T
a calendar object to transform
object
)

use UnaryOperator#apply(Object)

Returns:

a content type string
net.fortuna.ical4j.util.Calendars.getContentType
(Calendar
a calendar instance
calendar
,
Charset
an optional encoding
charset
)

@see Calendar#getContentType(Charset)

Returns:

the UID property
net.fortuna.ical4j.util.Calendars.getUid
(final Calendar
a calendar instance
calendar
)

@see Calendar#getUid()

Returns:

an array of calendar objects
net.fortuna.ical4j.util.Calendars.split
(final Calendar
a calendar instance
calendar
)

@see Calendar#split()

net.fortuna.ical4j.util.Dates

Utility class for old date/time API no longer required

Returns:

a round time value
net.fortuna.ical4j.util.Dates.round
(final long
the time value to round
time
,
final int
the rounding precision
precision
)

It is not all that useful to perform rounding without specifying an explicit timezone.

net.fortuna.ical4j.validate.ComponentValidator.assertNone(String
a component name used in the assertion
componentName
,
ComponentList<?>
a list of components
components
)

see ContentValidator#assertNone(String, java.util.List, boolean)

net.fortuna.ical4j.validate.ParameterValidator

default property validation moved to relevant property. See also PropertyRuleSet.

net.fortuna.ical4j.validate.Validator.assertFalse(Predicate<T> predicate, String message, boolean warn, T target, Object... messageParams)

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
net.fortuna.ical4j.filter.predicate.DateInRangeRule.range

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.filter.predicate.DateInRangeRule(DateRange
the range to check
range
,
int
indicates inclusiveness of start and end of the range
inclusiveMask
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

true if one period immediately follows the other, false otherwise
net.fortuna.ical4j.model.DateRange.adjacent
(final DateRange
a period to test for adjacency
range
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

true if the specified period end before this periods starts, otherwise false
net.fortuna.ical4j.model.DateRange.after
(final DateRange
a period that may or may not end before this period starts
range
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

true if the specified period starts after this periods ends, otherwise false
net.fortuna.ical4j.model.DateRange.before
(final DateRange
a period that may or may not start after this period ends
range
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

true if this period covers all the dates of the specified period, otherwise false
net.fortuna.ical4j.model.DateRange.contains
(final DateRange
the period that may be contained by this one
range
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

true if the specified period intersects this one, false otherwise.
net.fortuna.ical4j.model.DateRange.intersects
(final DateRange
a possible intersecting period
range
)

DateRange is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.model.DateTime.time

Time is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a temporal adapter instance equivalent to the specified date/time value
net.fortuna.ical4j.model.TemporalAdapter.from
(Date
a date/time instance
date
)

Date is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.model.TemporalAmountAdapter.from(Dur dur)

Dur is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a zoneoffset representing the specified utcoffset
net.fortuna.ical4j.model.ZoneOffsetAdapter.from
(UtcOffset utcOffset)

UtcOffset is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a new instance representing the sum of the two durations.
net.fortuna.ical4j.model.Dur.add
(final Dur
the duration to add to this duration
duration
)

Dur is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a postive value if this duration is longer, zero if the duration lengths are equal, otherwise a negative value
net.fortuna.ical4j.model.Dur.compareTo
(final Dur
another duration instance
arg0
)

Dur is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a Dur instance that represents a negation of this instance
net.fortuna.ical4j.model.Dur.negate
()

Dur is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.model.component.VVenue.Factory.createComponent()

VVenue is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.model.component.VVenue.Factory.createComponent(PropertyList properties)

VVenue is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

a java.util.Calendar
net.fortuna.ical4j.util.Dates.getCalendarInstance
(final Date
a date instance
date
)

Date is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

an instance of net.fortuna.ical4j.model.Date
net.fortuna.ical4j.util.Dates.getInstance
(final Date
a seed Java date instance
date
,
final Value
the type of date instance
type
)

Date is deprecated or references (maybe indirectly) at least one deprecated element.

net.fortuna.ical4j.data.HCalendarParser.icalDate(String original)

Date is deprecated or references (maybe indirectly) at least one deprecated element.