Class ApiDiff
java.lang.Object
com.google.errorprone.bugpatterns.apidiff.ApiDiff
public abstract class ApiDiff extends Object
The difference between two APIs.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApiDiff.ClassMemberKey
A per class unique identifier for a field or method. -
Constructor Summary
Constructors Constructor Description ApiDiff()
-
Method Summary
Modifier and Type Method Description static ApiDiff
fromMembers(Set<String> unsupportedClasses, com.google.common.collect.Multimap<String,ApiDiff.ClassMemberKey> unsupportedMembersByClass)
static ApiDiff
fromProto(ApiDiffProto.Diff diff)
Converts aApiDiffProto.Diff
to aApiDiff
.ApiDiffProto.Diff
toProto()
Converts aApiDiff
to aApiDiffProto.Diff
.abstract com.google.common.collect.ImmutableSet<String>
unsupportedClasses()
Binary names of classes only present in the new API.abstract com.google.common.collect.ImmutableSetMultimap<String,ApiDiff.ClassMemberKey>
unsupportedMembersByClass()
Members only present in the new API, grouped by binary name of their declaring class.
-
Constructor Details
-
ApiDiff
public ApiDiff()
-
-
Method Details
-
unsupportedClasses
Binary names of classes only present in the new API. -
unsupportedMembersByClass
public abstract com.google.common.collect.ImmutableSetMultimap<String,ApiDiff.ClassMemberKey> unsupportedMembersByClass()Members only present in the new API, grouped by binary name of their declaring class. -
fromMembers
public static ApiDiff fromMembers(Set<String> unsupportedClasses, com.google.common.collect.Multimap<String,ApiDiff.ClassMemberKey> unsupportedMembersByClass) -
fromProto
Converts aApiDiffProto.Diff
to aApiDiff
. -
toProto
Converts aApiDiff
to aApiDiffProto.Diff
.
-