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