org.dom4j.Namespace.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.dom4j.Namespace.hashCode()方法的一些代码示例,展示了Namespace.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Namespace.hashCode()方法的具体详情如下:
包路径:org.dom4j.Namespace
类名称:Namespace
方法名:hashCode

Namespace.hashCode介绍

[英]A cached version of the hashcode for efficiency
[中]为提高效率而缓存的哈希代码版本

代码示例

代码示例来源:origin: org.dom4j/dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: org.dom4j/dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: dom4j/dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: org.dom4j/com.springsource.org.dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: org.jenkins-ci.dom4j/dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: maven/dom4j

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: apache/servicemix-bundles

public int hashCode() {
  return super.hashCode();
}

代码示例来源:origin: dom4j/dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: maven/dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: org.dom4j/org.motechproject.org.dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: org.dom4j/com.springsource.org.dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

代码示例来源:origin: org.jenkins-ci.dom4j/dom4j

/**
 * Checks whether this Namespace equals the given Namespace. Two Namespaces
 * are equals if their URI and prefix are equal.
 * 
 * @param object
 *            DOCUMENT ME!
 * 
 * @return DOCUMENT ME!
 */
public boolean equals(Object object) {
  if (this == object) {
    return true;
  } else if (object instanceof Namespace) {
    Namespace that = (Namespace) object;
    // we cache hash codes so this should be quick
    if (hashCode() == that.hashCode()) {
      return uri.equals(that.getURI())
          && prefix.equals(that.getPrefix());
    }
  }
  return false;
}

相关文章