Package org.openstreetmap.osmosis.core.domain.common

Examples of org.openstreetmap.osmosis.core.domain.common.SimpleTimestampContainer


   *            The id of the changeset that this version of the entity was created by.
   * @deprecated As of 0.40, replaced by Relation(entityData).
   */
  public Relation(long id, int version, Date timestamp, OsmUser user, long changesetId) {
    // Chain to the more-specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId);
  }
View Full Code Here


   */
  public Relation(
      long id, int version, Date timestamp, OsmUser user, long changesetId, Collection<Tag> tags,
      List<RelationMember> members) {
    // Chain to the more-specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId, tags, members);
  }
View Full Code Here

   * @return This object allowing method chaining.
   */
  protected EntityBuilder<T> initialize(long newId, int newVersion, Date newTimestamp, OsmUser newUser,
      long newChangesetId) {
    // Delegate to the more specific method.
    initialize(newId, newVersion, new SimpleTimestampContainer(newTimestamp), newUser, newChangesetId);
   
    return this;
  }
View Full Code Here

   * @param timestamp
   *            The new timestamp.
   * @return This object allowing method chaining.
   */
  public EntityBuilder<T> setTimestamp(Date timestamp) {
    this.timestampContainer = new SimpleTimestampContainer(timestamp);
   
    return this;
  }
View Full Code Here

  public TimestampSetter() {
    Calendar calendar;
   
    calendar = Calendar.getInstance();
    calendar.set(Calendar.MILLISECOND, 0);
    timestamp = new SimpleTimestampContainer(calendar.getTime());
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.domain.common.SimpleTimestampContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.