1
2
3
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.stream.Collectors;
15 import java.util.stream.Stream;
16 import org.apache.maven.api.annotations.Generated;
17 import org.apache.maven.api.annotations.Nonnull;
18
19 @Generated
20 public class ActivationFile
21 extends BaseObject
22 {
23
24 public ActivationFile() {
25 this(org.apache.maven.api.settings.ActivationFile.newInstance());
26 }
27
28 public ActivationFile(org.apache.maven.api.settings.ActivationFile delegate) {
29 this(delegate, null);
30 }
31
32 public ActivationFile(org.apache.maven.api.settings.ActivationFile delegate, BaseObject parent) {
33 super(delegate, parent);
34 }
35
36 public ActivationFile clone(){
37 return new ActivationFile(getDelegate());
38 }
39
40 public org.apache.maven.api.settings.ActivationFile getDelegate() {
41 return (org.apache.maven.api.settings.ActivationFile) super.getDelegate();
42 }
43
44 @Override
45 public boolean equals(Object o) {
46 if (this == o) {
47 return true;
48 }
49 if (o == null || !(o instanceof ActivationFile)) {
50 return false;
51 }
52 ActivationFile that = (ActivationFile) o;
53 return Objects.equals(this.delegate, that.delegate);
54 }
55
56 @Override
57 public int hashCode() {
58 return getDelegate().hashCode();
59 }
60
61 public String getMissing() {
62 return getDelegate().getMissing();
63 }
64
65 public void setMissing(String missing) {
66 if (!Objects.equals(missing, getMissing())) {
67 update(getDelegate().withMissing(missing));
68 }
69 }
70
71 public String getExists() {
72 return getDelegate().getExists();
73 }
74
75 public void setExists(String exists) {
76 if (!Objects.equals(exists, getExists())) {
77 update(getDelegate().withExists(exists));
78 }
79 }
80
81 protected boolean replace(Object oldDelegate, Object newDelegate) {
82 if (super.replace(oldDelegate, newDelegate)) {
83 return true;
84 }
85 return false;
86 }
87
88 public static List<org.apache.maven.api.settings.ActivationFile> activationFileToApiV4(List<ActivationFile> list) {
89 return list != null ? new WrapperList<>(list, ActivationFile::getDelegate, ActivationFile::new) : null;
90 }
91
92 public static List<ActivationFile> activationFileToApiV3(List<org.apache.maven.api.settings.ActivationFile> list) {
93 return list != null ? new WrapperList<>(list, ActivationFile::new, ActivationFile::getDelegate) : null;
94 }
95
96 }