| /*=============================================================================# |
| # Copyright (c) 2010, 2018 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================*/ |
| |
| package org.eclipse.statet.rj.renv.core; |
| |
| |
| /** |
| * Basic immutable R package description, implementation {@link RPkgDescription}. |
| * |
| * @since de.walware.rj.renv.core 2.0 |
| */ |
| public class BasicRPkgDescription extends BasicRPkg implements RPkgDescription { |
| |
| |
| private final String title; |
| private final String description; |
| |
| private final String author; |
| private final String maintainer; |
| private final String url; |
| |
| private final String built; |
| |
| |
| public BasicRPkgDescription(final String name, final RNumVersion version, |
| final String title, final String desription, |
| final String author, final String maintainer, final String url, |
| final String built) { |
| super(name, version); |
| this.title= title; |
| this.description= desription; |
| this.author= author; |
| this.maintainer= maintainer; |
| this.url= url; |
| this.built= built; |
| } |
| |
| |
| @Override |
| public String getTitle() { |
| return this.title; |
| } |
| |
| @Override |
| public String getDescription() { |
| return this.description; |
| } |
| |
| @Override |
| public String getAuthor() { |
| return this.author; |
| } |
| |
| @Override |
| public String getMaintainer() { |
| return this.maintainer; |
| } |
| |
| @Override |
| public String getUrl() { |
| return this.url; |
| } |
| |
| @Override |
| public String getBuilt() { |
| return this.built; |
| } |
| |
| |
| @Override |
| public boolean equals(final Object obj) { |
| return (obj instanceof RPkgDescription && super.equals(obj)); |
| } |
| |
| } |