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 {
26 this( org.apache.maven.api.settings.ActivationFile.newInstance() );
27 }
28
29 public ActivationFile( org.apache.maven.api.settings.ActivationFile delegate )
30 {
31 this( delegate, null );
32 }
33
34 public ActivationFile( org.apache.maven.api.settings.ActivationFile delegate, BaseObject parent )
35 {
36 super( delegate, parent );
37 }
38
39 public ActivationFile clone()
40 {
41 return new ActivationFile( getDelegate() );
42 }
43
44 public org.apache.maven.api.settings.ActivationFile getDelegate()
45 {
46 return ( org.apache.maven.api.settings.ActivationFile ) super.getDelegate();
47 }
48
49 @Override
50 public boolean equals( Object o )
51 {
52 if ( this == o )
53 {
54 return true;
55 }
56 if ( o == null || !( o instanceof ActivationFile ) )
57 {
58 return false;
59 }
60 ActivationFile that = ( ActivationFile ) o;
61 return Objects.equals( this.delegate, that.delegate );
62 }
63
64 @Override
65 public int hashCode()
66 {
67 return getDelegate().hashCode();
68 }
69
70 public String getMissing()
71 {
72 return getDelegate().getMissing();
73 }
74
75 public void setMissing( String missing )
76 {
77 if ( !Objects.equals( missing, getDelegate().getMissing() ) )
78 {
79 update( getDelegate().withMissing( missing ) );
80 }
81 }
82
83 public String getExists()
84 {
85 return getDelegate().getExists();
86 }
87
88 public void setExists( String exists )
89 {
90 if ( !Objects.equals( exists, getDelegate().getExists() ) )
91 {
92 update( getDelegate().withExists( exists ) );
93 }
94 }
95
96 protected boolean replace( Object oldDelegate, Object newDelegate )
97 {
98 if ( super.replace( oldDelegate, newDelegate ) )
99 {
100 return true;
101 }
102 return false;
103 }
104
105 public static List<org.apache.maven.api.settings.ActivationFile> activationFileToApiV4( List<ActivationFile> list )
106 {
107 return list != null ? new WrapperList<>( list, ActivationFile::getDelegate, ActivationFile::new ) : null;
108 }
109
110 public static List<ActivationFile> activationFileToApiV3( List<org.apache.maven.api.settings.ActivationFile> list )
111 {
112 return list != null ? new WrapperList<>( list, ActivationFile::new, ActivationFile::getDelegate ) : null;
113 }
114
115 }