001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.diff;
016    
017    import java.util.List;
018    
019    /**
020     * @author Eudaldo Alonso
021     */
022    public class DiffVersionsInfo {
023    
024            public DiffVersionsInfo(
025                    List<DiffVersion> diffVersions, double nextVersion,
026                    double previousVersion) {
027    
028                    _diffVersions = diffVersions;
029                    _nextVersion = nextVersion;
030                    _previousVersion = previousVersion;
031            }
032    
033            public List<DiffVersion> getDiffVersions() {
034                    return _diffVersions;
035            }
036    
037            public double getNextVersion() {
038                    return _nextVersion;
039            }
040    
041            public double getPreviousVersion() {
042                    return _previousVersion;
043            }
044    
045            public void setDiffVersions(List<DiffVersion> diffVersions) {
046                    _diffVersions = diffVersions;
047            }
048    
049            public void setNextVersion(double nextVersion) {
050                    _nextVersion = nextVersion;
051            }
052    
053            public void setPreviousVersion(double previousVersion) {
054                    _previousVersion = previousVersion;
055            }
056    
057            private List<DiffVersion> _diffVersions;
058            private double _nextVersion;
059            private double _previousVersion;
060    
061    }