@Test public void setPriceRounding() { BidMachineFetcher.setPriceRounding(0.01); assertEquals("0.01", BidMachineFetcher.priceRounding.toString()); assertEquals(RoundingMode.CEILING, BidMachineFetcher.priceRoundingMode); BidMachineFetcher.setPriceRounding(1.001); assertEquals("1.001", BidMachineFetcher.priceRounding.toString()); assertEquals(RoundingMode.CEILING, BidMachineFetcher.priceRoundingMode); BidMachineFetcher.setPriceRounding(0.01, RoundingMode.FLOOR); assertEquals("0.01", BidMachineFetcher.priceRounding.toString()); assertEquals(RoundingMode.FLOOR, BidMachineFetcher.priceRoundingMode); BidMachineFetcher.setPriceRounding(1.001, RoundingMode.FLOOR); assertEquals("1.001", BidMachineFetcher.priceRounding.toString()); assertEquals(RoundingMode.FLOOR, BidMachineFetcher.priceRoundingMode); }
public static void setPriceRounding(double rounding) { setPriceRounding(rounding, DEF_PRICE_ROUNDING_MODE); }
BidMachineFetcher { public static void setPriceRounding(double rounding) { setPriceRounding(rounding, DEF_PRICE_ROUNDING_MODE); } }
BidMachineFetcher { public static void setPriceRounding(double rounding) { setPriceRounding(rounding, DEF_PRICE_ROUNDING_MODE); }  }
BidMachineFetcher { public static void setPriceRounding(double rounding) { setPriceRounding(rounding, DEF_PRICE_ROUNDING_MODE); }  static void setPriceRounding(double rounding); static void setPriceRounding(double rounding, RoundingMode roundingMode); @Nullable @SuppressWarnings({"unchecked"}) static Map<String, String> fetch(@NonNull AdRequest adRequest); @Nullable static T release(@NonNull T adRequest); @Nullable static T release(@NonNull AdsType adsType,
                                                  @NonNull Map<String, String> fetchedParams); @Nullable @SuppressWarnings("unchecked") static T release(@NonNull AdsType adsType,
                                                  @Nullable String requestId); static String roundPrice(double price); static void resetPriceRounding(); }
BidMachineFetcher { public static void setPriceRounding(double rounding) { setPriceRounding(rounding, DEF_PRICE_ROUNDING_MODE); }  static void setPriceRounding(double rounding); static void setPriceRounding(double rounding, RoundingMode roundingMode); @Nullable @SuppressWarnings({"unchecked"}) static Map<String, String> fetch(@NonNull AdRequest adRequest); @Nullable static T release(@NonNull T adRequest); @Nullable static T release(@NonNull AdsType adsType,
                                                  @NonNull Map<String, String> fetchedParams); @Nullable @SuppressWarnings("unchecked") static T release(@NonNull AdsType adsType,
                                                  @Nullable String requestId); static String roundPrice(double price); static void resetPriceRounding(); static final String KEY_ID; static final String KEY_PRICE; static final String KEY_AD_TYPE; static final String KEY_NETWORK_KEY; static final String AD_TYPE_DISPLAY; static final String AD_TYPE_VIDEO; static final String AD_TYPE_NATIVE; }