com.jayway.maven.plugins.android.standalonemojos.CompatibleScreen Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-maven-plugin Show documentation
Show all versions of android-maven-plugin Show documentation
Maven Plugin for Android Development
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