Class ApiDiff
java.lang.Object
com.google.errorprone.bugpatterns.apidiff.ApiDiff
The difference between two APIs.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A per class unique identifier for a field or method. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
.toProto()
Converts aApiDiff
to aApiDiffProto.Diff
.abstract com.google.common.collect.ImmutableSet
<String> Binary names of classes only present in the new API.abstract com.google.common.collect.ImmutableSetMultimap
<String, ApiDiff.ClassMemberKey> 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
.
-