diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-04-09 18:52:44 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-04-10 14:38:50 +0300 |
commit | f59eb61b282afa277af8858b493904fb6b0239d5 (patch) | |
tree | f6dda02471ce2916767d4e0e33b2110a2a44e2a9 /app/src | |
parent | 763696b69b78e28ed643609eb8055689d7f58f22 (diff) |
#690 Upcoming cards
Add @NonNull / @Nullable annotations
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src')
-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; } |