io.sphere.sdk.models.AssetDimensions Maven / Gradle / Ivy
package io.sphere.sdk.models;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@JsonDeserialize(as = AssetDimensionsImpl.class)
public interface AssetDimensions {
Integer getW();
Integer getH();
default Integer getWidth() {
return getW();
}
default Integer getHeight() {
return getH();
}
static AssetDimensions ofWidthAndHeight(final Integer width, final Integer height) {
return new AssetDimensionsImpl(width, height);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy