View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   //  Generated by Modello Velocity from model-v3.vm
3   //  template, any modifications will be overwritten.
4   // ==============================================================
5   package org.apache.maven.settings;
6   
7   import java.io.Serializable;
8   import java.util.AbstractList;
9   import java.util.Collections;
10  import java.util.HashMap;
11  import java.util.List;
12  import java.util.Map;
13  import java.util.Objects;
14  import java.util.Set;
15  import java.util.stream.Collectors;
16  import java.util.stream.Stream;
17  import org.apache.maven.api.annotations.Generated;
18  import org.apache.maven.api.annotations.Nonnull;
19  
20  @Generated
21  public class ActivationOS
22      extends BaseObject
23  {
24  
25      public ActivationOS() {
26          this(org.apache.maven.api.settings.ActivationOS.newInstance());
27      }
28  
29      public ActivationOS(org.apache.maven.api.settings.ActivationOS delegate) {
30          this(delegate, null);
31      }
32  
33      public ActivationOS(org.apache.maven.api.settings.ActivationOS delegate, BaseObject parent) {
34          super(delegate, parent);
35      }
36  
37      public ActivationOS clone(){
38          return new ActivationOS(getDelegate());
39      }
40  
41      public org.apache.maven.api.settings.ActivationOS getDelegate() {
42          return (org.apache.maven.api.settings.ActivationOS) super.getDelegate();
43      }
44  
45      @Override
46      public boolean equals(Object o) {
47          if (this == o) {
48              return true;
49          }
50          if (o == null || !(o instanceof ActivationOS)) {
51              return false;
52          }
53          ActivationOS that = (ActivationOS) o;
54          return Objects.equals(this.delegate, that.delegate);
55      }
56  
57      @Override
58      public int hashCode() {
59          return getDelegate().hashCode();
60      }
61  
62      public String getName() {
63          return getDelegate().getName();
64      }
65  
66      public void setName(String name) {
67          if (!Objects.equals(name, getName())) {
68              update(getDelegate().withName(name));
69          }
70      }
71  
72      public String getFamily() {
73          return getDelegate().getFamily();
74      }
75  
76      public void setFamily(String family) {
77          if (!Objects.equals(family, getFamily())) {
78              update(getDelegate().withFamily(family));
79          }
80      }
81  
82      public String getArch() {
83          return getDelegate().getArch();
84      }
85  
86      public void setArch(String arch) {
87          if (!Objects.equals(arch, getArch())) {
88              update(getDelegate().withArch(arch));
89          }
90      }
91  
92      public String getVersion() {
93          return getDelegate().getVersion();
94      }
95  
96      public void setVersion(String version) {
97          if (!Objects.equals(version, getVersion())) {
98              update(getDelegate().withVersion(version));
99          }
100     }
101 
102     protected boolean replace(Object oldDelegate, Object newDelegate) {
103         if (super.replace(oldDelegate, newDelegate)) {
104             return true;
105         }
106         return false;
107     }
108 
109     public static List<org.apache.maven.api.settings.ActivationOS> activationOSToApiV4(List<ActivationOS> list) {
110         return list != null ? new WrapperList<>(list, ActivationOS::getDelegate, ActivationOS::new) : null;
111     }
112 
113     public static List<ActivationOS> activationOSToApiV3(List<org.apache.maven.api.settings.ActivationOS> list) {
114         return list != null ? new WrapperList<>(list, ActivationOS::new, ActivationOS::getDelegate) : null;
115     }
116 
117 }