View Javadoc
1   package com.simpligility.maven.plugins.android.standalonemojos;
2   
3   /**
4    * CompatibleScreen abstracts the AndroidManifest element.
5    */
6   public class CompatibleScreen
7   {
8   
9       private String screenSize;
10      private String screenDensity;
11  
12      public String getScreenSize()
13      {
14          return screenSize;
15      }
16  
17      public void setScreenSize( String screenSize )
18      {
19          this.screenSize = screenSize;
20      }
21  
22      public String getScreenDensity()
23      {
24          return screenDensity;
25      }
26  
27      public void setScreenDensity( String screenDensity )
28      {
29          this.screenDensity = screenDensity;
30      }
31  
32      @Override
33      public boolean equals( Object obj )
34      {
35          if ( obj instanceof CompatibleScreen )
36          {
37              CompatibleScreen that = ( CompatibleScreen ) obj;
38              return this.screenDensity.equals( that.screenDensity ) && this.screenSize.equals( that.screenSize );
39          }
40          return false;
41      }
42  
43      @Override
44      public int hashCode()
45      {
46          return ( screenDensity + screenSize ).hashCode();
47      }
48  
49      @Override
50      public String toString()
51      {
52          return screenSize + ":" + screenDensity;
53      }
54  }