Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.content.IntentFilter;
      4 import com.xtremelabs.robolectric.internal.Implementation;
      5 import com.xtremelabs.robolectric.internal.Implements;
      6 
      7 @Implements(IntentFilter.AuthorityEntry.class)
      8 public class ShadowIntentFilterAuthorityEntry {
      9     private String host;
     10     private int port;
     11 
     12     public void __constructor__(String host, String port) {
     13         this.host = host;
     14         if (port == null) {
     15             this.port = -1;
     16         } else {
     17             this.port = Integer.parseInt(port);
     18         }
     19     }
     20 
     21     @Implementation
     22     public String getHost() {
     23         return host;
     24     }
     25 
     26     @Implementation
     27     public int getPort() {
     28         return port;
     29     }
     30 }
     31