blob: c19320b8e98c3f84e60e86c744c31189daa46b2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.yahoo.container.plugin.classanalysis;
import java.util.Optional;
/**
* The package
*
* @author gjoranv
*/
record PackageInfo(String name, Optional<ExportPackageAnnotation> exportPackage, boolean isPublicApi) {
PackageInfo hasExportPackageOrElse(PackageInfo other) {
return exportPackage().isPresent() ? this : other;
}
}
|