com.gargoylesoftware.htmlunit.WebWindowEvent.isEqual()方法的使用及代码示例

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

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

WebWindowEvent.isEqual介绍

暂无

代码示例

代码示例来源:origin: org.jvnet.hudson/htmlunit

/**
 * Returns true if the two objects are equal.
 *
 * @param object the object to compare against
 * @return true if the two objects are equal
 */
@Override
public boolean equals(final Object object) {
  if (getClass() == object.getClass()) {
    final WebWindowEvent event = (WebWindowEvent) object;
    return isEqual(getSource(), event.getSource())
      && getEventType() == event.getEventType()
      && isEqual(getOldPage(), event.getOldPage())
      && isEqual(getNewPage(), event.getNewPage());
  }
  return false;
}

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

/**
 * Returns true if the two objects are equal.
 *
 * @param object the object to compare against
 * @return true if the two objects are equal
 */
@Override
public boolean equals(final Object object) {
  if (getClass() == object.getClass()) {
    final WebWindowEvent event = (WebWindowEvent) object;
    return isEqual(getSource(), event.getSource())
      && getEventType() == event.getEventType()
      && isEqual(getOldPage(), event.getOldPage())
      && isEqual(getNewPage(), event.getNewPage());
  }
  return false;
}

代码示例来源:origin: net.disy.htmlunit/htmlunit

/**
 * Returns true if the two objects are equal.
 *
 * @param object the object to compare against
 * @return true if the two objects are equal
 */
@Override
public boolean equals(final Object object) {
  if (getClass() == object.getClass()) {
    final WebWindowEvent event = (WebWindowEvent) object;
    return isEqual(getSource(), event.getSource())
      && getEventType() == event.getEventType()
      && isEqual(getOldPage(), event.getOldPage())
      && isEqual(getNewPage(), event.getNewPage());
  }
  return false;
}

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

/**
 * Returns true if the two objects are equal.
 *
 * @param object the object to compare against
 * @return true if the two objects are equal
 */
@Override
public boolean equals(final Object object) {
  if (null == object) {
    return false;
  }
  if (getClass() == object.getClass()) {
    final WebWindowEvent event = (WebWindowEvent) object;
    return isEqual(getSource(), event.getSource())
      && getEventType() == event.getEventType()
      && isEqual(getOldPage(), event.getOldPage())
      && isEqual(getNewPage(), event.getNewPage());
  }
  return false;
}

代码示例来源:origin: HtmlUnit/htmlunit

/**
 * Returns true if the two objects are equal.
 *
 * @param object the object to compare against
 * @return true if the two objects are equal
 */
@Override
public boolean equals(final Object object) {
  if (null == object) {
    return false;
  }
  if (getClass() == object.getClass()) {
    final WebWindowEvent event = (WebWindowEvent) object;
    return isEqual(getSource(), event.getSource())
      && getEventType() == event.getEventType()
      && isEqual(getOldPage(), event.getOldPage())
      && isEqual(getNewPage(), event.getNewPage());
  }
  return false;
}

相关文章