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

com.uwsoft.editor.renderer.resources.FontSizePair Maven / Gradle / Ivy

Go to download

overlap2d-runtime-libgdx provides functionality to load, manipulate and render scenes generated by Overlap2D.

There is a newer version: 0.1.1
Show newest version
package com.uwsoft.editor.renderer.resources;

/**
 * Created by azakhary on 9/9/2014.
 */
public class FontSizePair {

    public String fontName;
    public int fontSize;

    public FontSizePair(String name, int size) {
        fontName = name;
        fontSize = size;
    }

    @Override
    public boolean equals(Object arg0) {
        FontSizePair arg = (FontSizePair)arg0;
        if(arg.fontName.equals(fontName) && arg.fontSize == fontSize) return true;

        return false;
    }

    @Override
    public String toString() {
        return fontName + "_" + fontSize;
    }

    @Override
    public int hashCode() {
        return (fontName + "_" + fontSize).hashCode();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy