@Test public void testIsShippable() { final Reward rewardWithNullShipping = RewardFactory.reward() .toBuilder() .shippingType(null) .build(); assertFalse(RewardUtils.isShippable(rewardWithNullShipping)); final Reward rewardWithNoShipping = RewardFactory.reward(); assertFalse(RewardUtils.isShippable(rewardWithNoShipping)); final Reward rewardWithMultipleLocationShipping = RewardFactory.multipleLocationShipping(); assertTrue(RewardUtils.isShippable(rewardWithMultipleLocationShipping)); final Reward rewardWithSingleLocationShipping = RewardFactory.singleLocationShipping(LocationFactory.nigeria().displayableName()); assertTrue(RewardUtils.isShippable(rewardWithSingleLocationShipping)); final Reward rewardWithWorldWideShipping = RewardFactory.multipleLocationShipping(); assertTrue(RewardUtils.isShippable(rewardWithWorldWideShipping)); }
public static boolean isShippable(final @NonNull Reward reward) { final String shippingType = reward.shippingType(); return shippingType != null && !Reward.SHIPPING_TYPE_NO_SHIPPING.equals(shippingType); }
RewardUtils { public static boolean isShippable(final @NonNull Reward reward) { final String shippingType = reward.shippingType(); return shippingType != null && !Reward.SHIPPING_TYPE_NO_SHIPPING.equals(shippingType); } }
RewardUtils { public static boolean isShippable(final @NonNull Reward reward) { final String shippingType = reward.shippingType(); return shippingType != null && !Reward.SHIPPING_TYPE_NO_SHIPPING.equals(shippingType); } private  RewardUtils(); }
RewardUtils { public static boolean isShippable(final @NonNull Reward reward) { final String shippingType = reward.shippingType(); return shippingType != null && !Reward.SHIPPING_TYPE_NO_SHIPPING.equals(shippingType); } 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 isShippable(final @NonNull Reward reward) { final String shippingType = reward.shippingType(); return shippingType != null && !Reward.SHIPPING_TYPE_NO_SHIPPING.equals(shippingType); } 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);  }