View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   //   Generated by Maven, any modifications will be overwritten.
3   // ==============================================================
4   package org.apache.maven.settings;
5   
6   import java.io.Serializable;
7   import java.util.AbstractList;
8   import java.util.Collections;
9   import java.util.HashMap;
10  import java.util.List;
11  import java.util.Map;
12  import java.util.stream.Collectors;
13  import java.util.stream.Stream;
14  import org.apache.maven.api.annotations.Generated;
15  import org.apache.maven.api.annotations.Nonnull;
16  
17  @Generated
18  public class RepositoryBase
19      implements Serializable, Cloneable
20  {
21  
22      org.apache.maven.api.settings.RepositoryBase delegate;
23  
24      public RepositoryBase()
25      {
26          this( org.apache.maven.api.settings.RepositoryBase.newInstance() );
27      }
28  
29      public RepositoryBase( org.apache.maven.api.settings.RepositoryBase delegate )
30      {
31          this.delegate = delegate;
32      }
33  
34      public RepositoryBase clone()
35      {
36          return new RepositoryBase( getDelegate() );
37      }
38  
39      public org.apache.maven.api.settings.RepositoryBase getDelegate()
40      {
41          return delegate;
42      }
43  
44      public String getId()
45      {
46          return getDelegate().getId();
47      }
48  
49      public void setId( String id )
50      {
51          delegate = getDelegate().withId( id );
52      }
53  
54      public String getName()
55      {
56          return getDelegate().getName();
57      }
58  
59      public void setName( String name )
60      {
61          delegate = getDelegate().withName( name );
62      }
63  
64      public String getUrl()
65      {
66          return getDelegate().getUrl();
67      }
68  
69      public void setUrl( String url )
70      {
71          delegate = getDelegate().withUrl( url );
72      }
73  
74      public String getLayout()
75      {
76          return getDelegate().getLayout();
77      }
78  
79      public void setLayout( String layout )
80      {
81          delegate = getDelegate().withLayout( layout );
82      }
83  
84      public static List<org.apache.maven.api.settings.RepositoryBase> repositoryBaseToApiV4( List<RepositoryBase> list )
85      {
86          return list != null ? new WrapperList<>( list, RepositoryBase::getDelegate, RepositoryBase::new ) : null;
87      }
88  
89      public static List<RepositoryBase> repositoryBaseToApiV3( List<org.apache.maven.api.settings.RepositoryBase> list )
90      {
91          return list != null ? new WrapperList<>( list, RepositoryBase::new, RepositoryBase::getDelegate ) : null;
92      }
93  
94  
95              
96      /**
97       * @see java.lang.Object#equals(java.lang.Object)
98       */
99      public boolean equals( Object obj )
100     {
101         RepositoryBase other =  (RepositoryBase) obj;
102         boolean retValue = false;
103         if ( this.getId() != null )
104         {
105             retValue = this.getId().equals( other.getId() );
106         }
107         return retValue;
108     }
109             
110           
111 }