![JAR search and dependency download from the Maven repository](/logo.png)
io.github.mvpotter.model.Size Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yandex-maps-static-api Show documentation
Show all versions of yandex-maps-static-api Show documentation
Library for working with Yandex Maps Static API 1.x
The newest version!
/*
* Created with IntelliJ IDEA.
* User: michaelpotter
* Date: 31/01/14
* Time: 20:58
*/
package io.github.mvpotter.model;
/**
* Represents map size.
*/
public class Size {
/**
* Width.
*/
private int width;
/**
* Height.
*/
private int height;
/**
* Creates size object.
*
* @param width width
* @param height height
*/
public Size(final int width, final int height) {
this.width = width;
this.height = height;
}
/**
* Returns width.
*
* @return width
*/
public int getWidth() {
return width;
}
/**
* Sets width.
*
* @param width width
*/
public void setWidth(final int width) {
this.width = width;
}
/**
* Returns height.
*
* @return height
*/
public int getHeight() {
return height;
}
/**
* Sets height.
*
* @param height height
*/
public void setHeight(final int height) {
this.height = height;
}
@Override
public String toString() {
return String.format("(%d, %d)", width, height);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy