| Package | Description |
|---|---|
| org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
| org.wikidata.wdtk.datamodel.implementation |
Basic implementation for objects representing Wikibase data and related factories.
|
| org.wikidata.wdtk.datamodel.interfaces |
Interfaces for representing Wikibase data and related factories.
|
| Modifier and Type | Method and Description |
|---|---|
QuantityValue |
DatamodelConverter.copy(QuantityValue object)
Copies a
QuantityValue. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue)
Creates a
QuantityValue with an empty unit and without bounds. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound)
Creates a
QuantityValue with an empty unit. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit)
Creates a
QuantityValue. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue,
ItemIdValue unit)
Creates a
QuantityValue without bounds. |
static QuantityValue |
Datamodel.makeQuantityValue(long numericValue,
long lowerBound,
long upperBound)
Creates a
QuantityValue from long numbers. |
| Modifier and Type | Method and Description |
|---|---|
QuantityValue |
DatamodelConverter.copy(QuantityValue object)
Copies a
QuantityValue. |
static boolean |
Equality.equalsQuantityValue(QuantityValue o1,
Object o2)
Returns
true if the parameters are two QuantityValue 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.
|
Value |
DatamodelConverter.visit(QuantityValue value) |
| Modifier and Type | Class and Description |
|---|---|
class |
QuantityValueImpl
Jackson implementation of
QuantityValue. |
| Modifier and Type | Method and Description |
|---|---|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue) |
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound) |
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit) |
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
String unit)
Deprecated.
|
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue,
ItemIdValue unit) |
QuantityValue |
DataObjectFactoryImpl.getQuantityValue(BigDecimal numericValue,
String unit) |
| Modifier and Type | Method and Description |
|---|---|
default QuantityValue |
StatementDocument.findStatementQuantityValue(PropertyIdValue propertyIdValue)
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
default QuantityValue |
StatementDocument.findStatementQuantityValue(String propertyId)
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue)
Creates a
QuantityValue without a unit of measurement and bounds. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound)
Creates a
QuantityValue without a unit of measurement. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit)
Creates a
QuantityValue. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
String unit)
|
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
ItemIdValue unit)
Creates a
QuantityValue without bounds. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
String unit)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ValueVisitor.visit(QuantityValue value)
Visits a QuantityValue and returns a result.
|
Copyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage