Package net.datafaker.providers.base
Class Tire
Sources:
Wheel size
Tire code
- Since:
- 2.0.2
-
Field Summary
Fields inherited from class net.datafaker.providers.base.AbstractProvider
faker -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.datafaker.providers.base.AbstractProvider
equals, getFaker, hashCode, loadGenerators, resolve, resolve, toString
-
Constructor Details
-
Tire
-
-
Method Details
-
code
Returns a Tire Code, such as 205/60R16. Which is width in mm / aspect ratio (height to width percentage) R (radial) Rim diameter.- Returns:
- a Tire Code String.
-
code
Returns a Tire Code prefixed with the provided String.- Returns:
- a Tire Code string prefixed with the provided String.
-
code
Returns a Tire Code optionally prefixed with the default prefix (P for passenger vehicle).- Parameters:
defaultPrefix- if true the default prefix "P" will be included, otherwise it will not.- Returns:
- a Tire Code string, such as P205/60R16.
-
vehicleType
-
width
-
aspectRatio
-
construction
-
rimSize
-
loadIndex
-
speedrating
-