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 ActivationOS
19      implements Serializable, Cloneable
20  {
21  
22      org.apache.maven.api.settings.ActivationOS delegate;
23  
24      public ActivationOS()
25      {
26          this( org.apache.maven.api.settings.ActivationOS.newInstance() );
27      }
28  
29      public ActivationOS( org.apache.maven.api.settings.ActivationOS delegate )
30      {
31          this.delegate = delegate;
32      }
33  
34      public ActivationOS clone()
35      {
36          return new ActivationOS( getDelegate() );
37      }
38  
39      public org.apache.maven.api.settings.ActivationOS getDelegate()
40      {
41          return delegate;
42      }
43  
44      public String getName()
45      {
46          return getDelegate().getName();
47      }
48  
49      public void setName( String name )
50      {
51          delegate = getDelegate().withName( name );
52      }
53  
54      public String getFamily()
55      {
56          return getDelegate().getFamily();
57      }
58  
59      public void setFamily( String family )
60      {
61          delegate = getDelegate().withFamily( family );
62      }
63  
64      public String getArch()
65      {
66          return getDelegate().getArch();
67      }
68  
69      public void setArch( String arch )
70      {
71          delegate = getDelegate().withArch( arch );
72      }
73  
74      public String getVersion()
75      {
76          return getDelegate().getVersion();
77      }
78  
79      public void setVersion( String version )
80      {
81          delegate = getDelegate().withVersion( version );
82      }
83  
84      public static List<org.apache.maven.api.settings.ActivationOS> activationOSToApiV4( List<ActivationOS> list )
85      {
86          return list != null ? new WrapperList<>( list, ActivationOS::getDelegate, ActivationOS::new ) : null;
87      }
88  
89      public static List<ActivationOS> activationOSToApiV3( List<org.apache.maven.api.settings.ActivationOS> list )
90      {
91          return list != null ? new WrapperList<>( list, ActivationOS::new, ActivationOS::getDelegate ) : null;
92      }
93  
94  }