Skip to content

Commit

Permalink
Merge 652bbca into a64872b
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Jul 5, 2018
2 parents a64872b + 652bbca commit 118dea3
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -564,6 +564,8 @@ default EntityIdValue findStatementEntityIdValue(String propertyId) {
}

/**
* @deprecated {@link DatatypeIdValue} is not allowed as snak value
*
* Returns the unique {@link DatatypeIdValue} for the given property, or
* null if there are zero or many such values given in statements for this
* property.
Expand All @@ -575,12 +577,15 @@ default EntityIdValue findStatementEntityIdValue(String propertyId) {
* the property to search for
* @return {@link DatatypeIdValue} or null
*/
@Deprecated
default DatatypeIdValue findStatementDatatypeIdValue(PropertyIdValue propertyIdValue) {
Value value = findStatementValue(propertyIdValue);
return value instanceof DatatypeIdValue ? (DatatypeIdValue) value : null;
}

/**
* @deprecated {@link DatatypeIdValue} is not allowed as snak value
*
* Returns the unique {@link DatatypeIdValue} for the given property, or
* null if there are zero or many such values given in statements for this
* property. Only the string id of the property is compared, not the site
Expand All @@ -594,6 +599,7 @@ default DatatypeIdValue findStatementDatatypeIdValue(PropertyIdValue propertyIdV
* the property to search for
* @return {@link DatatypeIdValue} or null
*/
@Deprecated
default DatatypeIdValue findStatementDatatypeIdValue(String propertyId) {
Value value = findStatementValue(propertyId);
return value instanceof DatatypeIdValue ? (DatatypeIdValue) value : null;
Expand Down

0 comments on commit 118dea3

Please sign in to comment.