The snak for this class in JSON format.
The amount of the quantity.
The number that the amount will be set to.
Checks if the snak has a value.
True if the snak has a value.
Creates a unique ID for the Snak.
The ID.
The lowerBound of the quantity.
The number that the lowerBound will be set to.
The upperBound of the quantity.
The number that the upperBound will be set to.
This function checks if two snaks are equal.
The other snak.
True if the snaks are equal.
Static
fromCreate a snak from some basic data.
The property of the snak in 'P-form'.
Amount of the quantity.
Optional
lowerBound: null | numberLowerBound of the quantity.
Optional
upperBound: null | numberUpperBound of the quantity.
Optional
unit: `Q${number}`Unit of the quantity.
A snak with the given properties.
Class for the QuantitySnak.
Most used property of this type is P1215 (apparent magnitude).