本文整理了Java中java.util.TreeMap.equals()
方法的一些代码示例,展示了TreeMap.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TreeMap.equals()
方法的具体详情如下:
包路径:java.util.TreeMap
类名称:TreeMap
方法名:equals
暂无
代码示例来源:origin: goldmansachs/gs-collections
@Override
public boolean equals(Object o)
{
return this.treeMap.equals(o);
}
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean equals(Object o)
{
return this.treeMap.equals(o);
}
代码示例来源:origin: eclipse/eclipse-collections
@Override
public boolean equals(Object o)
{
return this.treeMap.equals(o);
}
代码示例来源:origin: apache/hive
@Override
public boolean equals(Object obj) {
if (!(obj instanceof HLLSparseRegister)) {
return false;
}
HLLSparseRegister other = (HLLSparseRegister) obj;
boolean result = p == other.p && pPrime == other.pPrime && qPrime == other.qPrime
&& tempListIdx == other.tempListIdx;
if (result) {
for (int i = 0; i < tempListIdx; i++) {
if (tempList[i] != other.tempList[i]) {
return false;
}
}
result = result && sparseMap.equals(other.sparseMap);
}
return result;
}
代码示例来源:origin: voldemort/voldemort
@Override
public boolean equals(Object object) {
if(this == object)
return true;
if(object == null)
return false;
if(!object.getClass().equals(VectorClock.class))
return false;
VectorClock clock = (VectorClock) object;
return versionMap.equals(clock.versionMap);
}
代码示例来源:origin: syncany/syncany
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof PartialFileHistory)) {
return false;
}
PartialFileHistory other = (PartialFileHistory) obj;
if (fileHistoryId == null) {
if (other.fileHistoryId != null) {
return false;
}
}
else if (!fileHistoryId.equals(other.fileHistoryId)) {
return false;
}
if (versions == null) {
if (other.versions != null) {
return false;
}
}
else if (!versions.equals(other.versions)) {
return false;
}
return true;
}
代码示例来源:origin: protostuff/protostuff
return false;
else if (!treeMap.equals(other.treeMap))
return false;
if (weakHashMap == null)
代码示例来源:origin: protostuff/protostuff
return false;
else if (!treeMap.equals(other.treeMap))
return false;
if (weakHashMap == null)
代码示例来源:origin: jsevellec/cassandra-unit
@Override
public boolean equals(Object o)
{
if (this == o)
return true;
if (!(o instanceof StreamingHistogram))
return false;
StreamingHistogram that = (StreamingHistogram) o;
return maxBinSize == that.maxBinSize &&
bin.equals(that.bin);
}
代码示例来源:origin: org.apache.cassandra/cassandra-all
@Override
public boolean equals(Object o)
{
if (this == o)
return true;
if (!(o instanceof StreamingHistogram))
return false;
StreamingHistogram that = (StreamingHistogram) o;
return maxBinSize == that.maxBinSize &&
bin.equals(that.bin);
}
代码示例来源:origin: nikita36078/J2ME-Loader
/** {@inheritDoc} */
@Override
public boolean equals(Object other) {
if (! (other instanceof Annotations)) {
return false;
}
Annotations otherAnnotations = (Annotations) other;
return annotations.equals(otherAnnotations.annotations);
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server
@Override
public boolean equals(Object o)
{
if (this == o)
return true;
if (!(o instanceof StreamingHistogram))
return false;
StreamingHistogram that = (StreamingHistogram) o;
return maxBinSize == that.maxBinSize && bin.equals(that.bin);
}
代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx
/** {@inheritDoc} */
@Override
public boolean equals(Object other) {
if (! (other instanceof Annotations)) {
return false;
}
Annotations otherAnnotations = (Annotations) other;
return annotations.equals(otherAnnotations.annotations);
}
代码示例来源:origin: com.android/dx
/** {@inheritDoc} */
@Override
public boolean equals(Object other) {
if (! (other instanceof Annotations)) {
return false;
}
Annotations otherAnnotations = (Annotations) other;
return annotations.equals(otherAnnotations.annotations);
}
代码示例来源:origin: org.openxri/openxri-client
public boolean equals(Object o) {
PrioritizedList other = (PrioritizedList) o;
if (other == null) return(false);
if (other == this) return(true);
return(this.sortedList == null ? other.sortedList == null : this.sortedList.equals(other.sortedList));
}
}
代码示例来源:origin: org.droidparts.dexmaker/dexmaker
/** {@inheritDoc} */
@Override
public boolean equals(Object other) {
if (! (other instanceof Annotations)) {
return false;
}
Annotations otherAnnotations = (Annotations) other;
return annotations.equals(otherAnnotations.annotations);
}
代码示例来源:origin: net.java.sezpoz/sezpoz
public boolean equals(Object obj) {
if (!(obj instanceof SerAnnConst)) {
return false;
}
SerAnnConst o = (SerAnnConst) obj;
return name.equals(o.name) && values.equals(o.values);
}
代码示例来源:origin: net.java.sezpoz/sezpoz
public boolean equals(Object obj) {
if (!(obj instanceof SerAnnotatedElement)) {
return false;
}
SerAnnotatedElement o = (SerAnnotatedElement) obj;
return className.equals(o.className) &&
((memberName == null) ? (o.memberName == null) : memberName.equals(o.memberName)) &&
isMethod == o.isMethod &&
values.equals(o.values);
}
代码示例来源:origin: de.unijena.bioinf.ms/fingerprinter_oss
public boolean equals(Object other) {
if (this == other) return true;
if (other == null || getClass() != other.getClass()) return false;
if (hashCode != other.hashCode()) return false;
AtomicDescriptorSet that = (AtomicDescriptorSet) other;
if (!centerAtom.equals(that.centerAtom)) return false;
return descriptors.equals(that.descriptors);
}
代码示例来源:origin: org.gperfutils/gprof
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CallGraphReportThreadElement that = (CallGraphReportThreadElement) o;
if (subElements != null ? !subElements.equals(that.subElements) : that.subElements != null) return false;
if (thread != null ? !thread.equals(that.thread) : that.thread != null) return false;
return true;
}
内容来源于网络,如有侵权,请联系作者删除!