Package io.sentry
Class Hint
- java.lang.Object
-
- io.sentry.Hint
-
public final class Hint extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Hint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttachment(@Nullable Attachment attachment)
void
addAttachments(@Nullable java.util.List<Attachment> attachments)
void
clearAttachments()
@Nullable java.lang.Object
get(@NotNull java.lang.String name)
<T> T
getAs(@NotNull java.lang.String name, @NotNull java.lang.Class<T> clazz)
@NotNull java.util.List<Attachment>
getAttachments()
@Nullable Attachment
getScreenshot()
void
remove(@NotNull java.lang.String name)
void
replaceAttachments(@Nullable java.util.List<Attachment> attachments)
void
set(@NotNull java.lang.String name, @Nullable java.lang.Object hint)
void
setScreenshot(@Nullable Attachment screenshot)
static @NotNull Hint
withAttachment(@Nullable Attachment attachment)
static @NotNull Hint
withAttachments(@Nullable java.util.List<Attachment> attachments)
-
-
-
Method Detail
-
withAttachment
@NotNull public static @NotNull Hint withAttachment(@Nullable @Nullable Attachment attachment)
-
withAttachments
@NotNull public static @NotNull Hint withAttachments(@Nullable @Nullable java.util.List<Attachment> attachments)
-
set
public void set(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.Object hint)
-
get
@Nullable public @Nullable java.lang.Object get(@NotNull @NotNull java.lang.String name)
-
getAs
@Nullable public <T> T getAs(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.Class<T> clazz)
-
remove
public void remove(@NotNull @NotNull java.lang.String name)
-
addAttachment
public void addAttachment(@Nullable @Nullable Attachment attachment)
-
addAttachments
public void addAttachments(@Nullable @Nullable java.util.List<Attachment> attachments)
-
getAttachments
@NotNull public @NotNull java.util.List<Attachment> getAttachments()
-
replaceAttachments
public void replaceAttachments(@Nullable @Nullable java.util.List<Attachment> attachments)
-
clearAttachments
public void clearAttachments()
-
setScreenshot
public void setScreenshot(@Nullable @Nullable Attachment screenshot)
-
getScreenshot
@Nullable public @Nullable Attachment getScreenshot()
-
-