Java Code Examples for com.sun.org.apache.xml.internal.utils.XMLString#equals()

The following examples show how to use com.sun.org.apache.xml.internal.utils.XMLString#equals() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XString.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Compares this string to the specified object.
 * The result is <code>true</code> if and only if the argument is not
 * <code>null</code> and is a <code>String</code> object that represents
 * the same sequence of characters as this object.
 *
 * @param obj2   the object to compare this <code>String</code>
 *                     against.
 * @return  <code>true</code> if the <code>String </code>are equal;
 *          <code>false</code> otherwise.
 * @see     java.lang.String#compareTo(java.lang.String)
 * @see     java.lang.String#equalsIgnoreCase(java.lang.String)
 */
public boolean equals(XMLString obj2)
{
  if (obj2 != null) {
    if (!obj2.hasString()) {
      return obj2.equals(str());
    } else {
      return str().equals(obj2.toString());
    }
  }
  return false;
}
 
Example 2
Source File: XString.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Compares this string to the specified object.
 * The result is <code>true</code> if and only if the argument is not
 * <code>null</code> and is a <code>String</code> object that represents
 * the same sequence of characters as this object.
 *
 * @param obj2   the object to compare this <code>String</code>
 *                     against.
 * @return  <code>true</code> if the <code>String </code>are equal;
 *          <code>false</code> otherwise.
 * @see     java.lang.String#compareTo(java.lang.String)
 * @see     java.lang.String#equalsIgnoreCase(java.lang.String)
 */
public boolean equals(XMLString obj2)
{
  if (obj2 != null) {
    if (!obj2.hasString()) {
      return obj2.equals(str());
    } else {
      return str().equals(obj2.toString());
    }
  }
  return false;
}
 
Example 3
Source File: XString.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Compares this string to the specified object.
 * The result is <code>true</code> if and only if the argument is not
 * <code>null</code> and is a <code>String</code> object that represents
 * the same sequence of characters as this object.
 *
 * @param obj2   the object to compare this <code>String</code>
 *                     against.
 * @return  <code>true</code> if the <code>String </code>are equal;
 *          <code>false</code> otherwise.
 * @see     java.lang.String#compareTo(java.lang.String)
 * @see     java.lang.String#equalsIgnoreCase(java.lang.String)
 */
public boolean equals(XMLString obj2)
{
  if (obj2 != null) {
    if (!obj2.hasString()) {
      return obj2.equals(str());
    } else {
      return str().equals(obj2.toString());
    }
  }
  return false;
}
 
Example 4
Source File: XString.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Compares this string to the specified object.
 * The result is <code>true</code> if and only if the argument is not
 * <code>null</code> and is a <code>String</code> object that represents
 * the same sequence of characters as this object.
 *
 * @param obj2   the object to compare this <code>String</code>
 *                     against.
 * @return  <code>true</code> if the <code>String </code>are equal;
 *          <code>false</code> otherwise.
 * @see     java.lang.String#compareTo(java.lang.String)
 * @see     java.lang.String#equalsIgnoreCase(java.lang.String)
 */
public boolean equals(XMLString obj2)
{
  if (obj2 != null) {
    if (!obj2.hasString()) {
      return obj2.equals(str());
    } else {
      return str().equals(obj2.toString());
    }
  }
  return false;
}
 
Example 5
Source File: XString.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Compares this string to the specified object.
 * The result is <code>true</code> if and only if the argument is not
 * <code>null</code> and is a <code>String</code> object that represents
 * the same sequence of characters as this object.
 *
 * @param obj2   the object to compare this <code>String</code>
 *                     against.
 * @return  <code>true</code> if the <code>String </code>are equal;
 *          <code>false</code> otherwise.
 * @see     java.lang.String#compareTo(java.lang.String)
 * @see     java.lang.String#equalsIgnoreCase(java.lang.String)
 */
public boolean equals(XMLString obj2)
{
  if (obj2 != null) {
    if (!obj2.hasString()) {
      return obj2.equals(str());
    } else {
      return str().equals(obj2.toString());
    }
  }
  return false;
}
 
Example 6
Source File: XNodeSet.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 7
Source File: XNodeSet.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 8
Source File: XNodeSet.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 9
Source File: XNodeSet.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 10
Source File: XNodeSet.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 11
Source File: XNodeSet.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 12
Source File: XNodeSet.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 13
Source File: XNodeSet.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 14
Source File: XNodeSet.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 15
Source File: XNodeSet.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 16
Source File: XNodeSet.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 17
Source File: XNodeSet.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 18
Source File: XNodeSet.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}
 
Example 19
Source File: XNodeSet.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Compare two strings for non-equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is not equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return !s1.equals(s2);
}
 
Example 20
Source File: XNodeSet.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Compare two strings for equality.
 *
 *
 * @param s1 First string to compare
 * @param s2 Second String to compare
 *
 * @return true if s1 is equal to s2
 */
boolean compareStrings(XMLString s1, XMLString s2)
{
  return s1.equals(s2);
}