| 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 |
|---|---|
TimeValue |
DatamodelConverter.copy(TimeValue object)
Copies a
TimeValue. |
static TimeValue |
Datamodel.makeTimeValue(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
byte precision,
int beforeTolerance,
int afterTolerance,
int timezoneOffset,
String calendarModel)
Creates a
TimeValue. |
static TimeValue |
Datamodel.makeTimeValue(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
int timezoneOffset,
String calendarModel)
Creates a
TimeValue for a given date and time. |
static TimeValue |
Datamodel.makeTimeValue(long year,
byte month,
byte day,
String calendarModel)
Creates a
TimeValue for a given date. |
| Modifier and Type | Method and Description |
|---|---|
TimeValue |
DatamodelConverter.copy(TimeValue object)
Copies a
TimeValue. |
static boolean |
Equality.equalsTimeValue(TimeValue o1,
Object o2)
Returns
true if the parameters are two TimeValue objects with
exactly the same data. |
static String |
DataFormatter.formatTimeISO8601(TimeValue value)
Returns a representation of the date from the value attributes as ISO
8601 encoding.
|
static int |
Hash.hashCode(TimeValue o)
Returns a hash code for the given object.
|
static String |
ToString.toString(TimeValue o)
Returns a human-readable string representation of the given object.
|
Value |
DatamodelConverter.visit(TimeValue value) |
| Modifier and Type | Class and Description |
|---|---|
class |
TimeValueImpl
Jackson implementation of
TimeValue. |
| Modifier and Type | Method and Description |
|---|---|
TimeValue |
DataObjectFactoryImpl.getTimeValue(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
byte precision,
int beforeTolerance,
int afterTolerance,
int timezoneOffset,
String calendarModel) |
TimeValue |
TimeValueImpl.toGregorian() |
| Modifier and Type | Method and Description |
|---|---|
default TimeValue |
StatementDocument.findStatementTimeValue(PropertyIdValue propertyIdValue)
Returns the unique
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property. |
default TimeValue |
StatementDocument.findStatementTimeValue(String propertyId)
Returns the unique
TimeValue for the given property, or null if
there are zero or many such values given in statements for this property. |
TimeValue |
DataObjectFactory.getTimeValue(long year,
byte month,
byte day,
byte hour,
byte minute,
byte second,
byte precision,
int beforeTolerance,
int afterTolerance,
int timezoneOffset,
String calendarModel)
Creates a
TimeValue. |
TimeValue |
TimeValue.toGregorian()
Convert the value to the Gregorian calendar, if possible.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ValueVisitor.visit(TimeValue value)
Visits a TimeValue 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