- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中io.jenetics.jpx.ZonedDateTimes
类的一些代码示例,展示了ZonedDateTimes
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZonedDateTimes
类的具体详情如下:
包路径:io.jenetics.jpx.ZonedDateTimes
类名称:ZonedDateTimes
暂无
代码示例来源:origin: jenetics/jpx
@Override
public boolean equals(final Object obj) {
return obj == this ||
obj instanceof Metadata &&
Objects.equals(((Metadata)obj)._name, _name) &&
Objects.equals(((Metadata)obj)._description, _description) &&
Objects.equals(((Metadata)obj)._author, _author) &&
Objects.equals(((Metadata)obj)._copyright, _copyright) &&
Lists.equals(((Metadata)obj)._links, _links) &&
ZonedDateTimes.equals(((Metadata)obj)._time, _time) &&
Objects.equals(((Metadata)obj)._keywords, _keywords) &&
Objects.equals(((Metadata)obj)._bounds, _bounds);
}
代码示例来源:origin: jenetics/jpx
static ZonedDateTime read(final DataInput in) throws IOException {
final long seconds = IO.readLong(in);
final ZoneOffset offset = readZoneOffset(in);
return ZonedDateTime.ofInstant(Instant.ofEpochSecond(seconds), offset);
}
代码示例来源:origin: jenetics/jpx
@Test
public void readWriteZonedDateTime() throws IOException {
final Random random = new Random();
for (int i = 0; i < 1000; ++i) {
final ZonedDateTime zdt = nextZonedDataTime(random);
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
final DataOutputStream dout = new DataOutputStream(bout);
ZonedDateTimes.write(zdt, dout);
final ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
final DataInputStream din = new DataInputStream(bin);
final ZonedDateTime read = ZonedDateTimes.read(din);
Assert.assertEquals(read, zdt);
}
}
代码示例来源:origin: jenetics/jpx
static WayPoint read(final DataInput in) throws IOException {
final int existing = in.readInt();
return new WayPoint(
Latitude.ofDegrees(in.readDouble()),
Longitude.ofDegrees(in.readDouble()),
((existing & (1 << 0)) != 0) ? Length.read(in) : null,
((existing & (1 << 1)) != 0) ? Speed.read(in) : null,
((existing & (1 << 2)) != 0) ? ZonedDateTimes.read(in) : null,
((existing & (1 << 3)) != 0) ? Degrees.read(in) : null,
((existing & (1 << 4)) != 0) ? Length.read(in) : null,
((existing & (1 << 5)) != 0) ? IO.readString(in) : null,
((existing & (1 << 6)) != 0) ? IO.readString(in) : null,
((existing & (1 << 7)) != 0) ? IO.readString(in) : null,
((existing & (1 << 8)) != 0) ? IO.readString(in) : null,
((existing & (1 << 9)) != 0) ? IO.reads(Link::read, in) : null,
((existing & (1 << 10)) != 0) ? IO.readString(in) : null,
((existing & (1 << 11)) != 0) ? IO.readString(in) : null,
((existing & (1 << 12)) != 0) ? Fix.valueOf(IO.readString(in)) : null,
((existing & (1 << 13)) != 0) ? UInt.read(in) : null,
((existing & (1 << 14)) != 0) ? in.readDouble() : null,
((existing & (1 << 15)) != 0) ? in.readDouble() : null,
((existing & (1 << 16)) != 0) ? in.readDouble() : null,
((existing & (1 << 17)) != 0) ? Duration.ofMillis(in.readLong()) : null,
((existing & (1 << 18)) != 0) ? DGPSStation.read(in) : null,
((existing & (1 << 19)) != 0) ? Degrees.read(in) : null
);
}
代码示例来源:origin: jenetics/jpx
if ((existing & (1 << 0)) != 0) _elevation.write(out);
if ((existing & (1 << 1)) != 0) _speed.write(out);
if ((existing & (1 << 2)) != 0) ZonedDateTimes.write(_time, out);
if ((existing & (1 << 3)) != 0) _magneticVariation.write(out);
if ((existing & (1 << 4)) != 0) _geoidHeight.write(out);
代码示例来源:origin: jenetics/jpx
static void write(final ZonedDateTime time, final DataOutput out)
throws IOException
{
IO.writeLong(time.toEpochSecond(), out);
writeZoneOffset(time.getOffset(), out);
}
代码示例来源:origin: jenetics/jpx
@Override
public boolean equals(final Object obj) {
return obj == this ||
obj instanceof WayPoint &&
Objects.equals(((WayPoint)obj)._latitude, _latitude) &&
Objects.equals(((WayPoint)obj)._longitude, _longitude) &&
Objects.equals(((WayPoint)obj)._elevation, _elevation) &&
Objects.equals(((WayPoint)obj)._speed, _speed) &&
ZonedDateTimes.equals(((WayPoint)obj)._time, _time) &&
Objects.equals(((WayPoint)obj)._magneticVariation, _magneticVariation) &&
Objects.equals(((WayPoint)obj)._geoidHeight, _geoidHeight) &&
Objects.equals(((WayPoint)obj)._name, _name) &&
Objects.equals(((WayPoint)obj)._comment, _comment) &&
Objects.equals(((WayPoint)obj)._description, _description) &&
Objects.equals(((WayPoint)obj)._source, _source) &&
Lists.equals(((WayPoint)obj)._links, _links) &&
Objects.equals(((WayPoint)obj)._symbol, _symbol) &&
Objects.equals(((WayPoint)obj)._type, _type) &&
Objects.equals(((WayPoint)obj)._fix, _fix) &&
Objects.equals(((WayPoint)obj)._sat, _sat) &&
Objects.equals(((WayPoint)obj)._hdop, _hdop) &&
Objects.equals(((WayPoint)obj)._vdop, _vdop) &&
Objects.equals(((WayPoint)obj)._pdop, _pdop) &&
Objects.equals(((WayPoint)obj)._ageOfGPSData, _ageOfGPSData) &&
Objects.equals(((WayPoint)obj)._dgpsID, _dgpsID) &&
Objects.equals(((WayPoint)obj)._course, _course);
}
本文整理了Java中io.jenetics.jpx.ZonedDateTimes类的一些代码示例,展示了ZonedDateTimes类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中io.jenetics.jpx.ZonedDateTimes.read()方法的一些代码示例,展示了ZonedDateTimes.read()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中io.jenetics.jpx.ZonedDateTimes.write()方法的一些代码示例,展示了ZonedDateTimes.write()的具体用法。这些代码示例主要来源于
什么是 jdeveloper/adf 中的 .jws 、 .jpr 和 .jpx 文件? 最佳答案 .jpx 文件 包含 JDeveloper 在设计时使用的配置信息,以允许您使用 ADF 业务组件创
我想在 spring roo 中创建 .html 或 .txt 文件而不是 .jpx 文件,但我无法执行此操作。 web mvc setup web mvc all --package com.vis
我是一名优秀的程序员,十分优秀!