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

com.jayway.maven.plugins.android.standalonemojos.CompatibleScreen Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
package com.jayway.maven.plugins.android.standalonemojos;

/**
 * CompatibleScreen abstracts the AndroidManifest element.
 */
public class CompatibleScreen
{

    private String screenSize;
    private String screenDensity;

    public String getScreenSize()
    {
        return screenSize;
    }

    public void setScreenSize( String screenSize )
    {
        this.screenSize = screenSize;
    }

    public String getScreenDensity()
    {
        return screenDensity;
    }

    public void setScreenDensity( String screenDensity )
    {
        this.screenDensity = screenDensity;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj instanceof CompatibleScreen )
        {
            CompatibleScreen that = ( CompatibleScreen ) obj;
            return this.screenDensity.equals( that.screenDensity ) && this.screenSize.equals( that.screenSize );
        }
        return false;
    }

    @Override
    public int hashCode()
    {
        return ( screenDensity + screenSize ).hashCode();
    }

    @Override
    public String toString()
    {
        return screenSize + ":" + screenDensity;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy