001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.gpx;
003
004import java.util.Collection;
005import java.util.List;
006import java.util.Map;
007
008/**
009 * GPX track, NOT immutable
010 * @since 2907
011 * @deprecated Use {@link GpxTrack} instead!
012 */
013@Deprecated
014public class ImmutableGpxTrack extends GpxTrack {
015
016    /**
017     * Constructs a new {@code ImmutableGpxTrack}.
018     * @param trackSegs track segments
019     * @param attributes track attributes
020     */
021    public ImmutableGpxTrack(Collection<Collection<WayPoint>> trackSegs, Map<String, Object> attributes) {
022        super(trackSegs, attributes);
023    }
024
025    /**
026     * Constructs a new {@code ImmutableGpxTrack} from {@code GpxTrackSegment} objects.
027     * @param segments The segments to build the track from.  Input is not deep-copied,
028     *                 which means the caller may reuse the same segments to build
029     *                 multiple ImmutableGpxTrack instances from.  This should not be
030     *                 a problem, since this object cannot modify {@code this.segments}.
031     * @param attributes Attributes for the GpxTrack, the input map is copied.
032     * @since 13210
033     */
034    public ImmutableGpxTrack(List<IGpxTrackSegment> segments, Map<String, Object> attributes) {
035        super(segments, attributes);
036    }
037}