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

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

The 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