net.fortuna.ical4j.model.ZoneOffsetAdapter类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中net.fortuna.ical4j.model.ZoneOffsetAdapter类的一些代码示例,展示了ZoneOffsetAdapter类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneOffsetAdapter类的具体详情如下:
包路径:net.fortuna.ical4j.model.ZoneOffsetAdapter
类名称:ZoneOffsetAdapter

ZoneOffsetAdapter介绍

[英]Support adapter for java.time.ZoneOffset to output in iCalendar format.
[中]支持java适配器。时间分区偏移以iCalendar格式输出。

代码示例

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @param offset The offset to set.
 */
public final void setOffset(final ZoneOffset offset) {
  this.offset = new ZoneOffsetAdapter(offset);
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetTo(final UtcOffset anOffset) {
  this(ZoneOffsetAdapter.from(anOffset));
}

代码示例来源:origin: ical4j/ical4j

/**
 * @return Returns the offset.
 */
public final ZoneOffset getOffset() {
  return offset.getOffset();
}

代码示例来源:origin: ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  if (offset != null) {
    return offset.toString();
  }
  return "";
}

代码示例来源:origin: ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  if (offset != null) {
    return offset.toString();
  }
  return "";
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param offset The offset to set.
 */
public final void setOffset(final ZoneOffset offset) {
  this.offset = new ZoneOffsetAdapter(offset);
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetFrom(final UtcOffset anOffset) {
  this(ZoneOffsetAdapter.from(anOffset));
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  if (offset != null) {
    return offset.toString();
  }
  return "";
}

代码示例来源:origin: ical4j/ical4j

/**
 * @return Returns the offset.
 */
public final ZoneOffset getOffset() {
  return offset.getOffset();
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param offset The offset to set.
 */
public final void setOffset(final ZoneOffset offset) {
  this.offset = new ZoneOffsetAdapter(offset);
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetFrom(final UtcOffset anOffset) {
  this(ZoneOffsetAdapter.from(anOffset));
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final String getValue() {
  if (offset != null) {
    return offset.toString();
  }
  return "";
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @return Returns the offset.
 */
public final ZoneOffset getOffset() {
  return offset.getOffset();
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @param offset The offset to set.
 */
public final void setOffset(final ZoneOffset offset) {
  this.offset = new ZoneOffsetAdapter(offset);
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param aList    a list of parameters for this component
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetFrom(final ParameterList aList, final UtcOffset anOffset) {
  this(aList, ZoneOffsetAdapter.from(anOffset));
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @return Returns the offset.
 */
public final ZoneOffset getOffset() {
  return offset.getOffset();
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param aList    a list of parameters for this component
 * @param anOffset a timezone offset in milliseconds
 */
public TzOffsetTo(final ParameterList aList, final ZoneOffset anOffset) {
  super(TZOFFSETTO, aList, new Factory());
  offset = new ZoneOffsetAdapter(anOffset);
}

代码示例来源:origin: ical4j/ical4j

/**
 * @param aList    a list of parameters for this component
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetTo(final ParameterList aList, final UtcOffset anOffset) {
  this(aList, ZoneOffsetAdapter.from(anOffset));
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * {@inheritDoc}
 */
public final void setValue(final String aValue) {
  offset = new ZoneOffsetAdapter(ZoneOffset.of(aValue));
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * @param anOffset a timezone offset in milliseconds
 */
@Deprecated
public TzOffsetTo(final UtcOffset anOffset) {
  this(ZoneOffsetAdapter.from(anOffset));
}

相关文章