Class Contexts

java.lang.Object
io.sentry.protocol.Contexts
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
CombinedContextsView

public class Contexts extends Object implements JsonSerializable
  • Field Details

  • Constructor Details

    • Contexts

      public Contexts()
    • Contexts

      public Contexts(@NotNull @NotNull Contexts contexts)
  • Method Details

    • getTrace

      @Nullable public @Nullable SpanContext getTrace()
    • setTrace

      public void setTrace(@NotNull @NotNull SpanContext traceContext)
    • getApp

      @Nullable public @Nullable App getApp()
    • setApp

      public void setApp(@NotNull @NotNull App app)
    • getBrowser

      @Nullable public @Nullable Browser getBrowser()
    • setBrowser

      public void setBrowser(@NotNull @NotNull Browser browser)
    • getDevice

      @Nullable public @Nullable Device getDevice()
    • setDevice

      public void setDevice(@NotNull @NotNull Device device)
    • getOperatingSystem

      @Nullable public @Nullable OperatingSystem getOperatingSystem()
    • setOperatingSystem

      public void setOperatingSystem(@NotNull @NotNull OperatingSystem operatingSystem)
    • getRuntime

      @Nullable public @Nullable SentryRuntime getRuntime()
    • setRuntime

      public void setRuntime(@NotNull @NotNull SentryRuntime runtime)
    • getGpu

      @Nullable public @Nullable Gpu getGpu()
    • setGpu

      public void setGpu(@NotNull @NotNull Gpu gpu)
    • getResponse

      @Nullable public @Nullable Response getResponse()
    • withResponse

      public void withResponse(HintUtils.SentryConsumer<Response> callback)
    • setResponse

      public void setResponse(@NotNull @NotNull Response response)
    • size

      public int size()
    • getSize

      public int getSize()
    • isEmpty

      public boolean isEmpty()
    • containsKey

      public boolean containsKey(@NotNull @NotNull Object key)
    • get

      @Nullable public @Nullable Object get(@NotNull @NotNull Object key)
    • put

      @Nullable public @Nullable Object put(@NotNull @NotNull String key, @Nullable @Nullable Object value)
    • set

      @Nullable public @Nullable Object set(@NotNull @NotNull String key, @Nullable @Nullable Object value)
    • remove

      @Nullable public @Nullable Object remove(@NotNull @NotNull Object key)
    • keys

      @NotNull public @NotNull Enumeration<String> keys()
    • entrySet

      @NotNull public @NotNull Set<Map.Entry<String,Object>> entrySet()
    • putAll

      public void putAll(Map<? extends String,? extends Object> m)
    • putAll

      public void putAll(@NotNull @NotNull Contexts contexts)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException