org.fusesource.hawtbuf.Buffer.equals()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(134)

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

Buffer.equals介绍

暂无

代码示例

代码示例来源:origin: org.apache.activemq/activemq-osgi

@Override
public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (obj == null || obj.getClass() != Buffer.class)
    return false;
  return equals((Buffer) obj);
}

代码示例来源:origin: org.fusesource.hawtbuf/hawtbuf

@Override
public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (obj == null || obj.getClass() != Buffer.class)
    return false;
  return equals((Buffer) obj);
}

代码示例来源:origin: org.apache.activemq/activemq-all

@Override
public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (obj == null || obj.getClass() != Buffer.class)
    return false;
  return equals((Buffer) obj);
}

代码示例来源:origin: org.fusesource.hawtdb/hawtdb

public void readHeader() {
  buffer = paged.slice(SliceType.READ, page, 1);
  
  Buffer m = new Buffer(magic.length);
  buffer.get(m.data);
  
  if( !magic.equals(m) ) {
    throw new IOPagingException("Invalid extent read request.  The requested page was not an extent: "+page);
  }
  
  IntBuffer ib = buffer.asIntBuffer();
  length = ib.get();
  next = ib.get();
}

代码示例来源:origin: org.apache.activemq/activemq-all

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-all

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-all

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-leveldb-store

public boolean equals(Buffer obj) {
  return toUnframedBuffer().equals(obj.toUnframedBuffer());
}

代码示例来源:origin: org.apache.activemq/activemq-all

public boolean equals(Bean obj) {
  if (hasKey() ^ obj.hasKey() ) 
   return false;
  if (hasKey() && ( !getKey().equals(obj.getKey()) ))
   return false;
  if (hasValue() ^ obj.hasValue() ) 
   return false;
  if (hasValue() && ( !getValue().equals(obj.getValue()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

public boolean equals(Bean obj) {
  if (hasKey() ^ obj.hasKey() ) 
   return false;
  if (hasKey() && ( !getKey().equals(obj.getKey()) ))
   return false;
  if (hasValue() ^ obj.hasValue() ) 
   return false;
  if (hasValue() && ( !getValue().equals(obj.getValue()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/activemq-console

public boolean equals(Bean obj) {
  if (hasKey() ^ obj.hasKey() ) 
   return false;
  if (hasKey() && ( !getKey().equals(obj.getKey()) ))
   return false;
  if (hasValue() ^ obj.hasValue() ) 
   return false;
  if (hasValue() && ( !getValue().equals(obj.getValue()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/apollo-broker

public boolean equals(Bean obj) {
  if (hasKey() ^ obj.hasKey() ) 
   return false;
  if (hasKey() && ( !getKey().equals(obj.getKey()) ))
   return false;
  if (hasValue() ^ obj.hasValue() ) 
   return false;
  if (hasValue() && ( !getValue().equals(obj.getValue()) ))
   return false;
  return true;
}

代码示例来源:origin: org.sonatype.spice.zapper/spice-zapper

public boolean equals(Hash obj) {
 if (hasHashAlg() ^ obj.hasHashAlg() ) 
   return false;
 if (hasHashAlg() && ( !getHashAlg().equals(obj.getHashAlg()) ))
   return false;
 if (hasHashBytes() ^ obj.hasHashBytes() ) 
   return false;
 if (hasHashBytes() && ( !getHashBytes().equals(obj.getHashBytes()) ))
   return false;
 return true;
}

代码示例来源:origin: org.apache.activemq/activemq-all

public boolean equals(Bean obj) {
  if (hasCollectionKey() ^ obj.hasCollectionKey() ) 
   return false;
  if (hasCollectionKey() && ( getCollectionKey()!=obj.getCollectionKey() ))
   return false;
  if (hasEntryKey() ^ obj.hasEntryKey() ) 
   return false;
  if (hasEntryKey() && ( !getEntryKey().equals(obj.getEntryKey()) ))
   return false;
  return true;
}

代码示例来源:origin: org.fusesource.fuse-extra/fusemq-leveldb

public boolean equals(Bean obj) {
  if (hasCollectionKey() ^ obj.hasCollectionKey() ) 
   return false;
  if (hasCollectionKey() && ( getCollectionKey()!=obj.getCollectionKey() ))
   return false;
  if (hasEntryKey() ^ obj.hasEntryKey() ) 
   return false;
  if (hasEntryKey() && ( !getEntryKey().equals(obj.getEntryKey()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/activemq-leveldb-store

public boolean equals(Bean obj) {
  if (hasCollectionKey() ^ obj.hasCollectionKey() ) 
   return false;
  if (hasCollectionKey() && ( getCollectionKey()!=obj.getCollectionKey() ))
   return false;
  if (hasEntryKey() ^ obj.hasEntryKey() ) 
   return false;
  if (hasEntryKey() && ( !getEntryKey().equals(obj.getEntryKey()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/activemq-osgi

public boolean equals(Bean obj) {
  if (hasCollectionKey() ^ obj.hasCollectionKey() ) 
   return false;
  if (hasCollectionKey() && ( getCollectionKey()!=obj.getCollectionKey() ))
   return false;
  if (hasEntryKey() ^ obj.hasEntryKey() ) 
   return false;
  if (hasEntryKey() && ( !getEntryKey().equals(obj.getEntryKey()) ))
   return false;
  return true;
}

代码示例来源:origin: org.apache.activemq/activemq-leveldb

public boolean equals(Bean obj) {
  if (hasCollectionKey() ^ obj.hasCollectionKey() ) 
   return false;
  if (hasCollectionKey() && ( getCollectionKey()!=obj.getCollectionKey() ))
   return false;
  if (hasEntryKey() ^ obj.hasEntryKey() ) 
   return false;
  if (hasEntryKey() && ( !getEntryKey().equals(obj.getEntryKey()) ))
   return false;
  return true;
}

相关文章