1 48 49 package com.caucho.burlap.io; 50 51 55 public class BurlapRemote { 56 private String type; 57 private String url; 58 59 65 public BurlapRemote(String type, String url) 66 { 67 this.type = type; 68 this.url = url; 69 } 70 71 74 public BurlapRemote() 75 { 76 } 77 78 81 public String getType() 82 { 83 return this.type; 84 } 85 86 89 public String getURL() 90 { 91 return this.url; 92 } 93 94 97 public void setURL(String url) 98 { 99 this.url = url; 100 } 101 102 105 public int hashCode() 106 { 107 return this.url.hashCode(); 108 } 109 110 113 public boolean equals(Object obj) 114 { 115 if (! (obj instanceof BurlapRemote)) 116 return false; 117 118 BurlapRemote remote = (BurlapRemote) obj; 119 120 return this.url.equals(remote.url); 121 } 122 123 126 public String toString() 127 { 128 return "[BurlapRemote " + this.url + "]"; 129 } 130 } 131 | Popular Tags |