@Test public void testIsExpired() { assertFalse(RewardUtils.isExpired(RewardFactory.reward())); final Reward rewardEnded2DaysAgo = RewardFactory.reward() .toBuilder() .endsAt(DateTime.now().minusDays(2)) .build(); assertTrue(RewardUtils.isExpired(rewardEnded2DaysAgo)); final Reward rewardEndingIn2Days = RewardFactory.reward() .toBuilder() .endsAt(DateTime.now().plusDays(2)) .build(); assertFalse(RewardUtils.isExpired(rewardEndingIn2Days)); }
public static boolean isExpired(final @NonNull Reward reward) { return isTimeLimited(reward) && reward.endsAt().isBeforeNow(); }
RewardUtils { public static boolean isExpired(final @NonNull Reward reward) { return isTimeLimited(reward) && reward.endsAt().isBeforeNow(); } }
RewardUtils { public static boolean isExpired(final @NonNull Reward reward) { return isTimeLimited(reward) && reward.endsAt().isBeforeNow(); } private  RewardUtils(); }
RewardUtils { public static boolean isExpired(final @NonNull Reward reward) { return isTimeLimited(reward) && reward.endsAt().isBeforeNow(); } private  RewardUtils(); static boolean hasBackers(final @NonNull Reward reward); static boolean isAvailable(final @NonNull Project project, final @NonNull Reward reward); static boolean isExpired(final @NonNull Reward reward); static boolean isItemized(final @NonNull Reward reward); static boolean isLimited(final @NonNull Reward reward); static boolean isLimitReached(final @NonNull Reward reward); static boolean isNoReward(final @NonNull Reward reward); static boolean isReward(final @NonNull Reward reward); static boolean isShippable(final @NonNull Reward reward); static boolean isTimeLimited(final @NonNull Reward reward); static @NonNull String deadlineCountdownDetail(final @NonNull Reward reward, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Reward reward, final @NonNull Context context); static Pair<Integer, String> shippingSummary(final @NonNull Reward reward); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Reward reward); static int deadlineCountdownValue(final @NonNull Reward reward); static Double rewardAmountByVariant(final OptimizelyExperiment.Variant variant, final Reward reward, final Integer minPledge); }
RewardUtils { public static boolean isExpired(final @NonNull Reward reward) { return isTimeLimited(reward) && reward.endsAt().isBeforeNow(); } private  RewardUtils(); static boolean hasBackers(final @NonNull Reward reward); static boolean isAvailable(final @NonNull Project project, final @NonNull Reward reward); static boolean isExpired(final @NonNull Reward reward); static boolean isItemized(final @NonNull Reward reward); static boolean isLimited(final @NonNull Reward reward); static boolean isLimitReached(final @NonNull Reward reward); static boolean isNoReward(final @NonNull Reward reward); static boolean isReward(final @NonNull Reward reward); static boolean isShippable(final @NonNull Reward reward); static boolean isTimeLimited(final @NonNull Reward reward); static @NonNull String deadlineCountdownDetail(final @NonNull Reward reward, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Reward reward, final @NonNull Context context); static Pair<Integer, String> shippingSummary(final @NonNull Reward reward); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Reward reward); static int deadlineCountdownValue(final @NonNull Reward reward); static Double rewardAmountByVariant(final OptimizelyExperiment.Variant variant, final Reward reward, final Integer minPledge);  }