|
| 1 | +package net.datafaker; |
| 2 | + |
| 3 | +public class Measurement { |
| 4 | + |
| 5 | + private final Faker faker; |
| 6 | + |
| 7 | + protected Measurement(Faker faker) { |
| 8 | + this.faker = faker; |
| 9 | + } |
| 10 | + |
| 11 | + /** |
| 12 | + * This method generates a random height measurement. |
| 13 | + * |
| 14 | + * @return a string of height measurement. |
| 15 | + */ |
| 16 | + public String height() { |
| 17 | + return faker.fakeValuesService().resolve("measurement.height", this, faker); |
| 18 | + } |
| 19 | + |
| 20 | + /** |
| 21 | + * This method generates a random length measurement. |
| 22 | + * |
| 23 | + * @return a string of length measurement. |
| 24 | + */ |
| 25 | + public String length() { |
| 26 | + return faker.fakeValuesService().resolve("measurement.length", this, faker); |
| 27 | + } |
| 28 | + |
| 29 | + /** |
| 30 | + * This method generates a random volume measurement. |
| 31 | + * |
| 32 | + * @return a string of volume measurement. |
| 33 | + */ |
| 34 | + public String volume() { |
| 35 | + return faker.fakeValuesService().resolve("measurement.volume", this, faker); |
| 36 | + } |
| 37 | + |
| 38 | + /** |
| 39 | + * This method generates a random weight measurement. |
| 40 | + * |
| 41 | + * @return a string of weight measurement. |
| 42 | + */ |
| 43 | + public String weight() { |
| 44 | + return faker.fakeValuesService().resolve("measurement.weight", this, faker); |
| 45 | + } |
| 46 | + |
| 47 | + /** |
| 48 | + * This method generates a random metric height measurement. |
| 49 | + * |
| 50 | + * @return a string of metric height measurement. |
| 51 | + */ |
| 52 | + public String metricHeight() { |
| 53 | + return faker.fakeValuesService().resolve("measurement.metric_height", this, faker); |
| 54 | + } |
| 55 | + |
| 56 | + /** |
| 57 | + * This method generates a random metric length measurement. |
| 58 | + * |
| 59 | + * @return a string of metric length measurement. |
| 60 | + */ |
| 61 | + public String metricLength() { |
| 62 | + return faker.fakeValuesService().resolve("measurement.metric_length", this, faker); |
| 63 | + } |
| 64 | + |
| 65 | + /** |
| 66 | + * This method generates a random metric volume measurement. |
| 67 | + * |
| 68 | + * @return a string of metric volume measurement. |
| 69 | + */ |
| 70 | + public String metricVolume() { |
| 71 | + return faker.fakeValuesService().resolve("measurement.metric_volume", this, faker); |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * This method generates a random metric weight measurement. |
| 76 | + * |
| 77 | + * @return a string of metric weight measurement. |
| 78 | + */ |
| 79 | + public String metricWeight() { |
| 80 | + return faker.fakeValuesService().resolve("measurement.metric_weight", this, faker); |
| 81 | + } |
| 82 | +} |
0 commit comments