1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package signature.compare.model.impl;
18 
19 import java.util.List;
20 import java.util.Set;
21 
22 import signature.compare.model.ITypeReferenceDelta;
23 import signature.compare.model.IUpperBoundsDelta;
24 import signature.model.ITypeReference;
25 
26 public class SigUpperBoundsDelta extends SigDelta<List<ITypeReference>>
27         implements IUpperBoundsDelta {
28 
29     private ITypeReferenceDelta<?> firstUpperBoundDelta;
30     private Set<ITypeReferenceDelta<?>> remainingUpperBoundDeltas;
31 
SigUpperBoundsDelta(List<ITypeReference> from, List<ITypeReference> to)32     public SigUpperBoundsDelta(List<ITypeReference> from,
33             List<ITypeReference> to) {
34         super(from, to);
35     }
36 
37 
getFirstUpperBoundDelta()38     public ITypeReferenceDelta<?> getFirstUpperBoundDelta() {
39         return firstUpperBoundDelta;
40     }
41 
setFirstUpperBoundDelta( ITypeReferenceDelta<?> firstUpperBoundDelta)42     public void setFirstUpperBoundDelta(
43             ITypeReferenceDelta<?> firstUpperBoundDelta) {
44         this.firstUpperBoundDelta = firstUpperBoundDelta;
45     }
46 
getRemainingUpperBoundDeltas()47     public Set<ITypeReferenceDelta<?>> getRemainingUpperBoundDeltas() {
48         return remainingUpperBoundDeltas;
49     }
50 
setRemainingUpperBoundDeltas( Set<ITypeReferenceDelta<?>> remainingUpperBoundDeltas)51     public void setRemainingUpperBoundDeltas(
52             Set<ITypeReferenceDelta<?>> remainingUpperBoundDeltas) {
53         this.remainingUpperBoundDeltas = remainingUpperBoundDeltas;
54     }
55 }
56