#590 explanation for Abstract Document

This commit is contained in:
Ilkka Seppälä
2020-07-30 21:38:40 +03:00
parent 417f21ed3d
commit 8364b289b4
4 changed files with 168 additions and 10 deletions

View File

@ -32,7 +32,6 @@ import java.util.Optional;
*/
public interface HasPrice extends Document {
default Optional<Number> getPrice() {
return Optional.ofNullable((Number) get(Property.PRICE.toString()));
}