![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.maven.settings.RepositoryBase Maven / Gradle / Ivy
The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello Velocity from model-v3.vm
// template, any modifications will be overwritten.
// ==============================================================
package org.apache.maven.settings;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.maven.api.annotations.Generated;
import org.apache.maven.api.annotations.Nonnull;
@Generated
public class RepositoryBase
extends IdentifiableBase
implements Serializable, Cloneable
{
public RepositoryBase() {
this(org.apache.maven.api.settings.RepositoryBase.newInstance());
}
public RepositoryBase(org.apache.maven.api.settings.RepositoryBase delegate) {
this(delegate, null);
}
public RepositoryBase(org.apache.maven.api.settings.RepositoryBase delegate, BaseObject parent) {
super(delegate, parent);
}
public RepositoryBase clone(){
return new RepositoryBase(getDelegate());
}
@Override
public org.apache.maven.api.settings.RepositoryBase getDelegate() {
return (org.apache.maven.api.settings.RepositoryBase) super.getDelegate();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || !(o instanceof RepositoryBase)) {
return false;
}
RepositoryBase that = (RepositoryBase) o;
return Objects.equals(this.delegate, that.delegate);
}
@Override
public int hashCode() {
return getDelegate().hashCode();
}
public String getName() {
return getDelegate().getName();
}
public void setName(String name) {
if (!Objects.equals(name, getName())) {
update(getDelegate().withName(name));
}
}
public String getUrl() {
return getDelegate().getUrl();
}
public void setUrl(String url) {
if (!Objects.equals(url, getUrl())) {
update(getDelegate().withUrl(url));
}
}
public String getLayout() {
return getDelegate().getLayout();
}
public void setLayout(String layout) {
if (!Objects.equals(layout, getLayout())) {
update(getDelegate().withLayout(layout));
}
}
protected boolean replace(Object oldDelegate, Object newDelegate) {
if (super.replace(oldDelegate, newDelegate)) {
return true;
}
return false;
}
public static List repositoryBaseToApiV4(List list) {
return list != null ? new WrapperList<>(list, RepositoryBase::getDelegate, RepositoryBase::new) : null;
}
public static List repositoryBaseToApiV3(List list) {
return list != null ? new WrapperList<>(list, RepositoryBase::new, RepositoryBase::getDelegate) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy