com.sun.org.apache.xpath.internal.objects.XObject.greaterThan()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(138)

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

XObject.greaterThan介绍

[英]Tell if one object is greater than the other.
[中]判断一个物体是否比另一个大。

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
  * Apply the operation to two operands, and return the result.
  *
  *
  * @param left non-null reference to the evaluated left operand.
  * @param right non-null reference to the evaluated right operand.
  *
  * @return non-null reference to the XObject that represents the result of the operation.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject operate(XObject left, XObject right)
     throws javax.xml.transform.TransformerException
 {
  return left.greaterThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
 }
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
  * Apply the operation to two operands, and return the result.
  *
  *
  * @param left non-null reference to the evaluated left operand.
  * @param right non-null reference to the evaluated right operand.
  *
  * @return non-null reference to the XObject that represents the result of the operation.
  *
  * @throws javax.xml.transform.TransformerException
  */
 public XObject operate(XObject left, XObject right)
     throws javax.xml.transform.TransformerException
 {
  return left.greaterThan(right) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * Tell if one object is less than the other.
 *
 * @param obj2 Object to compare this to
 *
 * @return True if this object is less than the given object
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean lessThan(XObject obj2)
    throws javax.xml.transform.TransformerException
{
 // In order to handle the 'all' semantics of
 // nodeset comparisons, we always call the
 // nodeset function.  Because the arguments
 // are backwards, we call the opposite comparison
 // function.
 if (obj2.getType() == XObject.CLASS_NODESET)
  return obj2.greaterThan(this);
 return this.num() < obj2.num();
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * Tell if one object is less than the other.
 *
 * @param obj2 Object to compare this to
 *
 * @return True if this object is less than the given object
 *
 * @throws javax.xml.transform.TransformerException
 */
public boolean lessThan(XObject obj2)
    throws javax.xml.transform.TransformerException
{
 // In order to handle the 'all' semantics of
 // nodeset comparisons, we always call the
 // nodeset function.  Because the arguments
 // are backwards, we call the opposite comparison
 // function.
 if (obj2.getType() == XObject.CLASS_NODESET)
  return obj2.greaterThan(this);
 return this.num() < obj2.num();
}

相关文章