本文整理了Java中net.fortuna.ical4j.model.Property.copy()
方法的一些代码示例,展示了Property.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.copy()
方法的具体详情如下:
包路径:net.fortuna.ical4j.model.Property
类名称:Property
方法名:copy
[英]Create a (deep) copy of this property.
[中]创建此属性的(深层)副本。
代码示例来源:origin: ical4j/ical4j
/**
* Creates a deep copy of the specified property list.
* @param properties a property list
* @throws ParseException where property data cannot be parsed
* @throws IOException where property data cannot be read
* @throws URISyntaxException where a property contains an invalid URI
*/
@SuppressWarnings("unchecked")
public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException {
super();
for ( T p: properties) {
add((T)p.copy());
}
}
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* Creates a deep copy of the specified property list.
* @param properties a property list
* @throws ParseException where property data cannot be parsed
* @throws IOException where property data cannot be read
* @throws URISyntaxException where a property contains an invalid URI
*/
public PropertyList(PropertyList properties) throws ParseException, IOException, URISyntaxException {
super();
for (Property p : properties) {
add(p.copy());
}
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* Creates a deep copy of the specified property list.
* @param properties a property list
* @throws ParseException where property data cannot be parsed
* @throws IOException where property data cannot be read
* @throws URISyntaxException where a property contains an invalid URI
*/
@SuppressWarnings("unchecked")
public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException {
super();
for ( T p: properties) {
add((T)p.copy());
}
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* Creates a deep copy of the specified property list.
* @param properties a property list
* @throws ParseException where property data cannot be parsed
* @throws IOException where property data cannot be read
* @throws URISyntaxException where a property contains an invalid URI
*/
@SuppressWarnings("unchecked")
public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException {
super();
for ( T p: properties) {
add((T)p.copy());
}
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
/**
* Creates a deep copy of the specified property list.
* @param properties a property list
* @throws ParseException where property data cannot be parsed
* @throws IOException where property data cannot be read
* @throws URISyntaxException where a property contains an invalid URI
*/
public PropertyList(PropertyList properties) throws ParseException, IOException, URISyntaxException {
super();
for (final Iterator i = properties.iterator(); i.hasNext();) {
final Property p = (Property) i.next();
add(p.copy());
}
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* {@inheritDoc}
*/
public final Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateListProperty) copy).timeZone = timeZone;
((DateListProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* {@inheritDoc}
*/
public final Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateListProperty) copy).timeZone = timeZone;
((DateListProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: ical4j/ical4j
/**
* {@inheritDoc}
*/
public Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateProperty) copy).timeZone = timeZone;
((DateProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: ical4j/ical4j
/**
* {@inheritDoc}
*/
public final Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateListProperty) copy).timeZone = timeZone;
((DateListProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* {@inheritDoc}
*/
public Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateProperty) copy).timeZone = timeZone;
((DateProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: org.bedework.ical4j/ical4j
/**
* {@inheritDoc}
*/
public final Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateListProperty) copy).timeZone = timeZone;
((DateListProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: org.mnode.ical4j/ical4j
/**
* {@inheritDoc}
*/
public Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateProperty) copy).timeZone = timeZone;
((DateProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: org.bedework/bw-ical4j-cl
/**
* {@inheritDoc}
*/
public Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateProperty) copy).timeZone = timeZone;
((DateProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: net.oneandone.ical4j/ical4j
/**
* {@inheritDoc}
*/
public Property copy() throws IOException, URISyntaxException, ParseException {
final Property copy = super.copy();
((DateProperty) copy).timeZone = timeZone;
((DateProperty) copy).setValue(getValue());
return copy;
}
}
代码示例来源:origin: ical4j/ical4j
/**
* Test deep copy of properties.
*/
public void testCopy() throws IOException, URISyntaxException,
ParseException {
Property copy = property.copy();
assertEquals(property, copy);
copy.getParameters().add(Value.BOOLEAN);
assertFalse(property.equals(copy));
assertFalse(copy.equals(property));
}
内容来源于网络,如有侵权,请联系作者删除!