net.fortuna.ical4j.model.property.Geo.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(97)

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

Geo.<init>介绍

[英]Default constructor.
[中]默认构造函数。

代码示例

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

public Property createProperty(final ParameterList parameters, final String value)
    throws IOException, URISyntaxException, ParseException {
  return new Geo(parameters, value);
}

代码示例来源:origin: org.bedework/bw-ical4j-cl

public Property createProperty(final String name,
    final ParameterList parameters, final String value)
    throws IOException, URISyntaxException, ParseException {
  return new Geo(parameters, value);
}

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

public Property createProperty() {
    return new Geo();
  }
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

public Property createProperty(final ParameterList parameters, final String value)
    throws IOException, URISyntaxException, ParseException {
  return new Geo(parameters, value);
}

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

public Property createProperty() {
    return new Geo();
  }
}

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

public Property createProperty() {
    return new Geo();
  }
}

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

public Property createProperty(final ParameterList parameters, final String value)
    throws IOException, URISyntaxException, ParseException {
  return new Geo(parameters, value);
}

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

public Property createProperty(final ParameterList parameters, final String value)
    throws IOException, URISyntaxException, ParseException {
  return new Geo(parameters, value);
}

代码示例来源:origin: org.bedework/bw-ical4j-cl

public Property createProperty(final String name) {
    return new Geo();
  }
};

代码示例来源:origin: net.oneandone.ical4j/ical4j

public Property createProperty() {
    return new Geo();
  }
}

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

/**
   * @return
   */
  public static TestSuite suite() {
    TestSuite suite = new TestSuite();
    // Ensure no loss of precision in lattitude/longitude..
    Geo geo = new Geo("37.386013;-122.082932");
    suite.addTest(new GeoTest(geo, "37.386013;-122.082932"));
    
    //testGeoBigDecimal..
    BigDecimal latitude = BigDecimal.valueOf(65.35);
    BigDecimal longitude = BigDecimal.valueOf(22.01);
    geo = new Geo(latitude, longitude);
    suite.addTest(new GeoTest(geo, "65.35;22.01"));

    suite.addTest(new GeoTest("testValidation", geo));
    suite.addTest(new GeoTest("testEquals", geo));
    
    return suite;
  }
}

代码示例来源:origin: org.bedework.caleng/bw-calendar-engine-ical

BwGeo bwgeo = val.getGeo();
if (bwgeo != null) {
 Geo geo = new Geo(bwgeo.getLatitude(), bwgeo.getLongitude());
 pl.add(geo);

相关文章