当前位置: 首页>>代码示例>>Java>>正文


Java Kim.equals方法代码示例

本文整理汇总了Java中org.json.Kim.equals方法的典型用法代码示例。如果您正苦于以下问题:Java Kim.equals方法的具体用法?Java Kim.equals怎么用?Java Kim.equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.json.Kim的用法示例。


在下文中一共展示了Kim.equals方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: postMortem

import org.json.Kim; //导入方法依赖的package包/类
public boolean postMortem(PostMortem pm) {
    boolean result = true;
    TrieKeep that = (TrieKeep) pm;
    if (this.length != that.length) {
        JSONzip.log("\nLength " + this.length + " <> " + that.length);
        return false;
    }
    if (this.capacity != that.capacity) {
        JSONzip.log("\nCapacity " + this.capacity + " <> " + that.capacity);
        return false;
    }
    for (int i = 0; i < this.length; i += 1) {
        Kim thiskim = this.kim(i);
        Kim thatkim = that.kim(i);
        if (!thiskim.equals(thatkim)) {
            JSONzip.log("\n[" + i + "] " + thiskim + " <> " + thatkim);
            result = false;
        }
    }
    return result && this.root.postMortem(that.root);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:22,代码来源:TrieKeep.java

示例2: postMortem

import org.json.Kim; //导入方法依赖的package包/类
public boolean postMortem(PostMortem pm) {
    boolean result = true;
    TrieKeep that = (TrieKeep) pm;
    if (this.length != that.length) {
        JSONzip.log("\nLength " + this.length + " <> " + that.length);
        return false;
    }
    if (this.capacity != that.capacity) {
        JSONzip.log("\nCapacity " + this.capacity + " <> " +
                that.capacity);
        return false;
    }
    for (int i = 0; i < this.length; i += 1) {
        Kim thiskim = this.kim(i);
        Kim thatkim = that.kim(i);
        if (!thiskim.equals(thatkim)) {
            JSONzip.log("\n[" + i + "] " + thiskim + " <> " + thatkim);
            result = false;
        }
    }
    return result && this.root.postMortem(that.root);
}
 
开发者ID:starn,项目名称:encdroidMC,代码行数:23,代码来源:TrieKeep.java

示例3: postMortem

import org.json.Kim; //导入方法依赖的package包/类
public boolean postMortem(PostMortem pm) {
	boolean result = true;
	TrieKeep that = (TrieKeep) pm;
	if (this.length != that.length) {
		JSONzip.log("\nLength " + this.length + " <> " + that.length);
		return false;
	}
	if (this.capacity != that.capacity) {
		JSONzip.log("\nCapacity " + this.capacity + " <> " + that.capacity);
		return false;
	}
	for (int i = 0; i < this.length; i += 1) {
		Kim thiskim = this.kim(i);
		Kim thatkim = that.kim(i);
		if (!thiskim.equals(thatkim)) {
			JSONzip.log("\n[" + i + "] " + thiskim + " <> " + thatkim);
			result = false;
		}
	}
	return result && this.root.postMortem(that.root);
}
 
开发者ID:cping,项目名称:RipplePower,代码行数:22,代码来源:TrieKeep.java

示例4: postMortem

import org.json.Kim; //导入方法依赖的package包/类
public boolean postMortem(PostMortem pm) {
	boolean result = true;
	TrieKeep that = (TrieKeep) pm;
	if (this.length != that.length) {
		JSONzip.log("\nLength " + this.length + " <> " + that.length);
		return false;
	}
	if (this.capacity != that.capacity) {
		JSONzip.log("\nCapacity " + this.capacity + " <> " +
				that.capacity);
		return false;
	}
	for (int i = 0; i < this.length; i += 1) {
		Kim thiskim = this.kim(i);
		Kim thatkim = that.kim(i);
		if (!thiskim.equals(thatkim)) {
			JSONzip.log("\n[" + i + "] " + thiskim + " <> " + thatkim);
			result = false;
		}
	}
	return result && this.root.postMortem(that.root);
}
 
开发者ID:nkeiter,项目名称:generic-dotCMS-plugin-code-examples,代码行数:23,代码来源:TrieKeep.java


注:本文中的org.json.Kim.equals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。