Package io.sentry.protocol
Class SdkVersion
java.lang.Object
io.sentry.protocol.SdkVersion
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
The SDK Interface describes the Sentry SDK and its configuration used to capture and transmit an
event.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIntegration(@NotNull String integration) voidaddPackage(@NotNull String name, @NotNull String version) boolean@NotNull StringgetName()@NotNull Set<SentryPackage>@NotNull StringinthashCode()voidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidvoidsetUnknown(@Nullable Map<String, Object> unknown) voidsetVersion(@NotNull String version) static @NotNull SdkVersionupdateSdkVersion(@Nullable SdkVersion sdk, @NotNull String name, @NotNull String version) Updates the Sdk name and version or create a new one with the given values
-
Constructor Details
-
SdkVersion
-
-
Method Details
-
getVersion
-
setVersion
-
getName
-
setName
-
addPackage
-
addIntegration
-
getPackageSet
-
getIntegrationSet
-
updateSdkVersion
@NotNull public static @NotNull SdkVersion updateSdkVersion(@Nullable @Nullable SdkVersion sdk, @NotNull @NotNull String name, @NotNull @NotNull String version) Updates the Sdk name and version or create a new one with the given values- Parameters:
sdk- the SdkVersion object or nullname- the sdk nameversion- the sdk version- Returns:
- the SdkVersion
-
equals
-
hashCode
public int hashCode() -
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-