diff options
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/upcomingcards/UpcomingCardsAdapterItem.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/upcomingcards/UpcomingCardsAdapterItem.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/upcomingcards/UpcomingCardsAdapterItem.java index 2bffb752b..ecdbfd0bf 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/upcomingcards/UpcomingCardsAdapterItem.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/upcomingcards/UpcomingCardsAdapterItem.java @@ -1,16 +1,24 @@ package it.niedermann.nextcloud.deck.ui.upcomingcards; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + +import org.jetbrains.annotations.NotNull; + import it.niedermann.nextcloud.deck.model.Account; import it.niedermann.nextcloud.deck.model.full.FullCard; public class UpcomingCardsAdapterItem { + @NonNull private final FullCard fullCard; + @NonNull private final Account account; private final long currentBoardLocalId; + @Nullable private final Long currentBoardRemoteId; private final boolean currentBoardHasEditPermission; - public UpcomingCardsAdapterItem(FullCard fullCard, Account account, long currentBoardLocalId, Long currentBoardRemoteId, boolean currentBoardHasEditPermission) { + public UpcomingCardsAdapterItem(@NonNull FullCard fullCard, @NonNull Account account, long currentBoardLocalId, @Nullable Long currentBoardRemoteId, boolean currentBoardHasEditPermission) { this.fullCard = fullCard; this.account = account; this.currentBoardLocalId = currentBoardLocalId; @@ -18,11 +26,11 @@ public class UpcomingCardsAdapterItem { this.currentBoardHasEditPermission = currentBoardHasEditPermission; } - public FullCard getFullCard() { + public @NotNull FullCard getFullCard() { return fullCard; } - public Account getAccount() { + public @NotNull Account getAccount() { return account; } @@ -30,7 +38,7 @@ public class UpcomingCardsAdapterItem { return currentBoardLocalId; } - public Long getCurrentBoardRemoteId() { + public @org.jetbrains.annotations.Nullable Long getCurrentBoardRemoteId() { return currentBoardRemoteId; } |