@Test void logsBloomFilter() { Address address = Address.fromHexString("0x095e7baea6a6c7c4c2dfeb977efac326af552d87"); Bytes data = Bytes.fromHexString("0x0102"); List<Bytes32> topics = new ArrayList<>(); topics.add(Bytes32.fromHexString("0x0000000000000000000000000000000000000000000000000000000000000000")); Log log = new Log(address, data, topics); LogsBloomFilter bloom = new LogsBloomFilter(); bloom.insertLog(log); assertEquals( Bytes.fromHexString( "0x00000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000040000000000000000000000000000000000000000000000000000000"), bloom.toBytes()); }
public LogsBloomFilter() { this.data = MutableBytes.create(256); }
LogsBloomFilter { public LogsBloomFilter() { this.data = MutableBytes.create(256); } }
LogsBloomFilter { public LogsBloomFilter() { this.data = MutableBytes.create(256); } LogsBloomFilter();  LogsBloomFilter(Bytes data); }
LogsBloomFilter { public LogsBloomFilter() { this.data = MutableBytes.create(256); } LogsBloomFilter();  LogsBloomFilter(Bytes data); static LogsBloomFilter compute(final Collection<Log> logs); static LogsBloomFilter readFrom(final RLPReader input); Bytes toBytes(); void insertLog(final Log log); void digest(final LogsBloomFilter other); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode(); }
LogsBloomFilter { public LogsBloomFilter() { this.data = MutableBytes.create(256); } LogsBloomFilter();  LogsBloomFilter(Bytes data); static LogsBloomFilter compute(final Collection<Log> logs); static LogsBloomFilter readFrom(final RLPReader input); Bytes toBytes(); void insertLog(final Log log); void digest(final LogsBloomFilter other); @Override String toString(); @Override boolean equals(final Object obj); @Override int hashCode();  }