/** Take a Info protocol buffer containing a date and convert it into a java Date object */ protected Date getDate(Osmformat.Info info) { if (info.hasTimestamp()) { return new Date(date_granularity * (long) info.getTimestamp()); } else return NODATE; } public static final Date NODATE = new Date(-1);
other.hasVersion(), other.version_); timestamp_ = visitor.visitLong( hasTimestamp(), timestamp_, other.hasTimestamp(), other.timestamp_); changeset_ = visitor.visitLong( hasChangeset(), changeset_,
/** * <code>optional int64 timestamp = 2;</code> */ @java.lang.Override public boolean hasTimestamp() { return instance.hasTimestamp(); } /**