예제 #1
0
파일: SRMURL.java 프로젝트: kreczko/storm
  /*
   * (non-Javadoc)
   *
   * @see java.lang.Object#hashCode()
   */
  @Override
  public int hashCode() {

    final int prime = 31;
    int result = 17;
    result = prime * result + local;
    result = prime * result + (localSURL ? 1231 : 1237);
    result = prime * result + ((path == null) ? 0 : path.hashCode());
    result = prime * result + ((queryString == null) ? 0 : queryString.hashCode());
    result = prime * result + ((surlType == null) ? 0 : surlType.hashCode());
    result = prime * result + ((transfProtocol == null) ? 0 : transfProtocol.hashCode());
    return result;
  }
예제 #2
0
파일: SRMURL.java 프로젝트: kreczko/storm
  /*
   * (non-Javadoc)
   *
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {

    if (this == obj) return true;
    if (obj == null) return false;
    if (!(obj instanceof SRMURL)) return false;
    SRMURL other = (SRMURL) obj;
    if (local != other.local) return false;
    if (localSURL != other.localSURL) return false;
    if (path == null) {
      if (other.path != null) return false;
    } else if (!path.equals(other.path)) return false;
    if (queryString == null) {
      if (other.queryString != null) return false;
    } else if (!queryString.equals(other.queryString)) return false;
    if (surlType == null) {
      if (other.surlType != null) return false;
    } else if (!surlType.equals(other.surlType)) return false;
    if (transfProtocol == null) {
      if (other.transfProtocol != null) return false;
    } else if (!transfProtocol.equals(other.transfProtocol)) return false;
    return true;
  }
예제 #3
0
파일: SRMURL.java 프로젝트: kreczko/storm
  public String getTransportPrefix() {

    return transfProtocol.toString();
  }