本文整理了Java中com.google.common.collect.Table.equals()
方法的一些代码示例,展示了Table.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.equals()
方法的具体详情如下:
包路径:com.google.common.collect.Table
类名称:Table
方法名:equals
[英]Compares the specified object with this table for equality. Two tables are equal when their cell views, as returned by #cellSet, are equal.
[中]将指定的对象与此表进行相等性比较。当#cellSet返回的单元格视图相等时,两个表是相等的。
代码示例来源:origin: google/guava
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: google/guava
@Override
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
synchronized (mutex) {
return delegate().equals(obj);
}
}
}
代码示例来源:origin: google/j2objc
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: wildfly/wildfly
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: google/guava
@Override
public boolean equals(@Nullable Object o) {
assertTrue(Thread.holdsLock(mutex));
return delegate.equals(o);
}
代码示例来源:origin: google/j2objc
@Override
public boolean equals(@NullableDecl Object obj) {
if (this == obj) {
return true;
}
synchronized (mutex) {
return delegate().equals(obj);
}
}
}
代码示例来源:origin: wildfly/wildfly
@Override
public boolean equals(@NullableDecl Object obj) {
if (this == obj) {
return true;
}
synchronized (mutex) {
return delegate().equals(obj);
}
}
}
代码示例来源:origin: cascading/lingual-core
@Override
public boolean equals( Object object )
{
if( this == object )
return true;
if( !( object instanceof MultiProperties ) )
return false;
MultiProperties that = (MultiProperties) object;
if( properties != null ? !properties.equals( that.properties ) : that.properties != null )
return false;
return true;
}
代码示例来源:origin: stackoverflow.com
Table table = tableFinder.next();
if (table.equals(name)){ // assuming that your equals implementation
// compares with the property name of table
代码示例来源:origin: io.github.oliviercailloux.jmcda/utils
@Override
public boolean equals(Object obj) {
if (!(obj instanceof SparseMatrixDRead<?, ?>)) {
return false;
}
SparseMatrixDRead<?, ?> m2 = (SparseMatrixDRead<?, ?>) obj;
return m_table.equals(m2.asTable());
}
代码示例来源:origin: com.diffplug.guava/guava-collect
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: io.github.oliviercailloux.jmcda/utils
@Override
public boolean equals(Object obj) {
if (!(obj instanceof SparseMatrixDRead<?, ?>)) {
return false;
}
SparseMatrixDRead<?, ?> m2 = (SparseMatrixDRead<?, ?>) obj;
return m_table.equals(m2.asTable());
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
@Override
public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: org.hudsonci.lib.guava/guava
@Override public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: Nextdoor/bender
@Override public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: com.google.guava/guava-jdk5
@Override public boolean equals(Object obj) {
return (obj == this) || delegate().equals(obj);
}
代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger
@Override
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
synchronized (mutex) {
return delegate().equals(obj);
}
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public boolean equals(@NullableDecl Object obj) {
if (this == obj) {
return true;
}
synchronized (mutex) {
return delegate().equals(obj);
}
}
}
代码示例来源:origin: com.google.guava/guava-tests
@Override
public boolean equals(@Nullable Object o) {
assertTrue(Thread.holdsLock(mutex));
return delegate.equals(o);
}
内容来源于网络,如有侵权,请联系作者删除!