• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2024 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 com.android.bedstead.testapis.parser.signatures;
18 
19 import java.util.List;
20 
21 /**
22  * Represents a minimal representation of a package for comparison purposes.
23  */
24 public final class PackageSignature {
25 
26     private final String mName;
27 
28     private final List<ClassSignature> mClassSignatures;
29 
PackageSignature(String name, List<ClassSignature> classSignature)30     public PackageSignature(String name, List<ClassSignature> classSignature) {
31         mName = name;
32         mClassSignatures = classSignature;
33     }
34 
getName()35     public String getName() {
36         return mName;
37     }
38 
getClassSignatures()39     public List<ClassSignature> getClassSignatures() {
40         return mClassSignatures;
41     }
42 
43     @Override
toString()44     public String toString() {
45         return "PackageSignature{" +
46                 "mName='" + mName + '\'' +
47                 ", mClassSignature=" + mClassSignatures +
48                 '}';
49     }
50 }
51