Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.QuantityValue
Package
Description
Package for mostly static helper code to work with data objects.
Basic implementation for objects representing Wikibase data and related factories.
Interfaces for representing Wikibase data and related factories.
Package for examples of bots that edit Wikidata.
Serializer for RDF
Package for code related to the conversion of data values to RDF in various ways.
-
Uses of QuantityValue in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionDatamodelConverter.copy
(QuantityValue object) Copies aQuantityValue
.static QuantityValue
Datamodel.makeQuantityValue
(long numericValue, long lowerBound, long upperBound) Creates aQuantityValue
from long numbers.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue) Creates aQuantityValue
with an empty unit and without bounds.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound) Creates aQuantityValue
with an empty unit.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Creates aQuantityValue
.static QuantityValue
Datamodel.makeQuantityValue
(BigDecimal numericValue, ItemIdValue unit) Creates aQuantityValue
without bounds.Modifier and TypeMethodDescriptionDatamodelConverter.copy
(QuantityValue object) Copies aQuantityValue
.static boolean
Equality.equalsQuantityValue
(QuantityValue o1, Object o2) Returnstrue
if the parameters are twoQuantityValue
objects with exactly the same data.static int
Hash.hashCode
(QuantityValue o) Returns a hash code for the given object.static String
ToString.toString
(QuantityValue o) Returns a human-readable string representation of the given object.DatamodelConverter.visit
(QuantityValue value) -
Uses of QuantityValue in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, String unit) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, String unit) Deprecated.DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) DataObjectFactoryImpl.getQuantityValue
(BigDecimal numericValue, ItemIdValue unit) -
Uses of QuantityValue in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeMethodDescriptiondefault QuantityValue
StatementDocument.findStatementQuantityValue
(String propertyId) Returns the uniqueQuantityValue
for the given property, or null if there are zero or many such values given in statements for this property.default QuantityValue
StatementDocument.findStatementQuantityValue
(PropertyIdValue propertyIdValue) Returns the uniqueQuantityValue
for the given property, or null if there are zero or many such values given in statements for this property.DataObjectFactory.getQuantityValue
(BigDecimal numericValue) Creates aQuantityValue
without a unit of measurement and bounds.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, String unit) Deprecated.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound) Creates aQuantityValue
without a unit of measurement.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, String unit) DataObjectFactory.getQuantityValue
(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, ItemIdValue unit) Creates aQuantityValue
.DataObjectFactory.getQuantityValue
(BigDecimal numericValue, ItemIdValue unit) Creates aQuantityValue
without bounds.Modifier and TypeMethodDescriptionValueVisitor.visit
(QuantityValue value) Visits a QuantityValue and returns a result. -
Uses of QuantityValue in org.wikidata.wdtk.examples.bots
Modifier and TypeMethodDescriptionprotected boolean
FixIntegerQuantityPrecisionsBot.isPlusMinusOneValue
(QuantityValue quantityValue) Checks if the given value is a number with precision +/-1. -
Uses of QuantityValue in org.wikidata.wdtk.rdf
Modifier and TypeMethodDescriptionstatic String
Vocabulary.getQuantityValueUri
(QuantityValue value) PropertyRegister.setPropertyTypeFromQuantityValue
(PropertyIdValue propertyIdValue, QuantityValue value) Returns the IRI of the primitive Type of an Property forQuantityValue
objects. -
Uses of QuantityValue in org.wikidata.wdtk.rdf.values
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.Value
QuantityValueConverter.getRdfValue
(QuantityValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
AnyValueConverter.visit
(QuantityValue value) void
QuantityValueConverter.writeValue
(QuantityValue value, org.eclipse.rdf4j.model.Resource resource)
DataObjectFactory.getQuantityValue(BigDecimal, ItemIdValue)