All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.models.AssetDimensions Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
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