/** * Returns true if there is a statement for the given property and value. * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @param value * the value to search * @return true if a statement for this property and value exists */ default boolean hasStatementValue(PropertyIdValue propertyIdValue, Value value) { return hasStatementValue(propertyIdValue, Collections.singleton(value)); }
/** * Returns true if there is a statement for the given property and value. * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyIdValue * the property to search for * @param value * the value to search * @return true if a statement for this property and value exists */ default boolean hasStatementValue(PropertyIdValue propertyIdValue, Value value) { return hasStatementValue(propertyIdValue, Collections.singleton(value)); }
/** * Returns true if there is a statement for the given property and value. * Only the string id of the property is compared, not the site id. This is * useful in situations where all data is known to come from a single site. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @param value * the value to search * @return true if a statement for this property and value exists */ default boolean hasStatementValue(String propertyId, Value value) { return hasStatementValue(propertyId, Collections.singleton(value)); }
/** * Returns true if there is a statement for the given property and value. * Only the string id of the property is compared, not the site id. This is * useful in situations where all data is known to come from a single site. * <p> * This is a convenience method for accessing the data that can be obtained * via {@link #getStatementGroups()}. * * @param propertyId * the property to search for * @param value * the value to search * @return true if a statement for this property and value exists */ default boolean hasStatementValue(String propertyId, Value value) { return hasStatementValue(propertyId, Collections.singleton(value)); }