Top Description Fields Constructors Methods
net.fortuna.ical4j.model

public Class ZoneOffsetAdapter

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.time.ZoneOffset, java.util.Locale, .Objects

Support adapter for java.time.ZoneOffset to output in iCalendar format.

Field Summary

Modifier and TypeField and Description
private final ZoneOffset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ZoneOffset

Returns:

a zoneoffset representing the specified utcoffset
from
(UtcOffset utcOffset)
References Deprecated UtcOffset is deprecated or references (maybe indirectly) at least one deprecated element.

public ZoneOffset
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

offsetback to summary
private final ZoneOffset offset

Constructor Detail

ZoneOffsetAdapterback to summary
public ZoneOffsetAdapter(ZoneOffset offset)

Method Detail

fromback to summary
public static ZoneOffset from(UtcOffset utcOffset)

References Deprecated

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

See corresponding docs for further information.

Returns:ZoneOffset

a zoneoffset representing the specified utcoffset

getOffsetback to summary
public ZoneOffset getOffset()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override