Committed by
Gerrit Code Review
Rename arguments to make its meaning clear
Change-Id: I1d9d5f53318b4d252b0ed0cddfcb9bee0367bdd8
Showing
1 changed file
with
12 additions
and
12 deletions
... | @@ -52,41 +52,41 @@ public final class BandwidthResource extends LinkResource { | ... | @@ -52,41 +52,41 @@ public final class BandwidthResource extends LinkResource { |
52 | /** | 52 | /** |
53 | * Creates a new instance with given bandwidth in bps. | 53 | * Creates a new instance with given bandwidth in bps. |
54 | * | 54 | * |
55 | - * @param bandwidth bandwidth value to be assigned | 55 | + * @param bps bandwidth value to be assigned |
56 | * @return {@link BandwidthResource} instance with given bandwidth | 56 | * @return {@link BandwidthResource} instance with given bandwidth |
57 | */ | 57 | */ |
58 | - public static BandwidthResource bps(double bandwidth) { | 58 | + public static BandwidthResource bps(double bps) { |
59 | - return new BandwidthResource(bandwidth); | 59 | + return new BandwidthResource(bps); |
60 | } | 60 | } |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Creates a new instance with given bandwidth in Kbps. | 63 | * Creates a new instance with given bandwidth in Kbps. |
64 | * | 64 | * |
65 | - * @param bandwidth bandwidth value to be assigned | 65 | + * @param kbps bandwidth value to be assigned |
66 | * @return {@link BandwidthResource} instance with given bandwidth | 66 | * @return {@link BandwidthResource} instance with given bandwidth |
67 | */ | 67 | */ |
68 | - public static BandwidthResource kbps(double bandwidth) { | 68 | + public static BandwidthResource kbps(double kbps) { |
69 | - return new BandwidthResource(bandwidth * 1_000L); | 69 | + return new BandwidthResource(kbps * 1_000L); |
70 | } | 70 | } |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * Creates a new instance with given bandwidth in Mbps. | 73 | * Creates a new instance with given bandwidth in Mbps. |
74 | * | 74 | * |
75 | - * @param bandwidth bandwidth value to be assigned | 75 | + * @param mbps bandwidth value to be assigned |
76 | * @return {@link BandwidthResource} instance with given bandwidth | 76 | * @return {@link BandwidthResource} instance with given bandwidth |
77 | */ | 77 | */ |
78 | - public static BandwidthResource mbps(double bandwidth) { | 78 | + public static BandwidthResource mbps(double mbps) { |
79 | - return new BandwidthResource(bandwidth * 1_000_000L); | 79 | + return new BandwidthResource(mbps * 1_000_000L); |
80 | } | 80 | } |
81 | 81 | ||
82 | /** | 82 | /** |
83 | * Creates a new instance with given bandwidth in Gbps. | 83 | * Creates a new instance with given bandwidth in Gbps. |
84 | * | 84 | * |
85 | - * @param bandwidth bandwidth value to be assigned | 85 | + * @param gbps bandwidth value to be assigned |
86 | * @return {@link BandwidthResource} instance with given bandwidth | 86 | * @return {@link BandwidthResource} instance with given bandwidth |
87 | */ | 87 | */ |
88 | - public static BandwidthResource gbps(double bandwidth) { | 88 | + public static BandwidthResource gbps(double gbps) { |
89 | - return new BandwidthResource(bandwidth * 1_000_000_000L); | 89 | + return new BandwidthResource(gbps * 1_000_000_000L); |
90 | } | 90 | } |
91 | 91 | ||
92 | /** | 92 | /** | ... | ... |
-
Please register or login to post a comment