com.google.gwt.core.client.JavaScriptObject.equals()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 JavaScript  
字(2.5k)|赞(0)|评价(0)|浏览(78)

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

JavaScriptObject.equals介绍

[英]Returns true if the objects are JavaScript identical (triple-equals).
[中]如果对象是JavaScript相同的(三重相等),则返回true

代码示例

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Returns <code>true</code> if <code>other</code> is a {@link JSONObject}
 * wrapping the same underlying object.
 */
@Override
public boolean equals(Object other) {
 if (!(other instanceof JSONObject)) {
  return false;
 }
 return jsObject.equals(((JSONObject) other).jsObject);
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Returns <code>true</code> if <code>other</code> is a {@link JSONArray}
 * wrapping the same underlying object.
 */
@Override
public boolean equals(Object other) {
 if (!(other instanceof JSONArray)) {
  return false;
 }
 return jsArray.equals(((JSONArray) other).jsArray);
}

代码示例来源:origin: com.googlecode.gwtquery/gwtquery

public boolean equals(Object obj) {
 return jso.equals(obj);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Returns <code>true</code> if <code>other</code> is a {@link JSONObject}
 * wrapping the same underlying object.
 */
@Override
public boolean equals(Object other) {
 if (!(other instanceof JSONObject)) {
  return false;
 }
 return jsObject.equals(((JSONObject) other).jsObject);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Returns <code>true</code> if <code>other</code> is a {@link JSONArray}
 * wrapping the same underlying object.
 */
@Override
public boolean equals(Object other) {
 if (!(other instanceof JSONArray)) {
  return false;
 }
 return jsArray.equals(((JSONArray) other).jsArray);
}

代码示例来源:origin: io.reinert.requestor.core/requestor-api

public boolean isEquals(BucketsOverlay other) {
  if (super.equals(other))
    return true;
  final JsArrayString keys = getKeysNative();
  final JsArrayString otherKeys = other.getKeysNative();
  if (arraysEquals(keys, otherKeys)) {
    for (int i = 0; i < keys.length(); i++) {
      if (!arraysEquals(getNative(keys.get(i)), other.getNative(otherKeys.get(i)))) {
        return false;
      }
    }
    return true;
  }
  return false;
}

代码示例来源:origin: reinert/requestor

public boolean isEquals(BucketsOverlay other) {
  if (super.equals(other))
    return true;
  final JsArrayString keys = getKeysNative();
  final JsArrayString otherKeys = other.getKeysNative();
  if (arraysEquals(keys, otherKeys)) {
    for (int i = 0; i < keys.length(); i++) {
      if (!arraysEquals(getNative(keys.get(i)), other.getNative(otherKeys.get(i)))) {
        return false;
      }
    }
    return true;
  }
  return false;
}

相关文章