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

io.github.mvpotter.model.Size Maven / Gradle / Ivy

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