BedRecord { @Override public boolean equals(final Object o) { if (o == this) { return true; } if (!(o instanceof BedRecord)) { return false; } BedRecord bedRecord = (BedRecord) o; return Objects.equals(format, bedRecord.format) && Objects.equals(chrom, bedRecord.chrom) && Objects.equals(start, bedRecord.start) && Objects.equals(end, bedRecord.end) && Objects.equals(name, bedRecord.name) && Objects.equals(score, bedRecord.score) && Objects.equals(strand, bedRecord.strand) && Objects.equals(thickStart, bedRecord.thickStart) && Objects.equals(thickEnd, bedRecord.thickEnd) && Objects.equals(itemRgb, bedRecord.itemRgb) && Objects.equals(blockCount, bedRecord.blockCount) && Objects.equals(blockSizes, bedRecord.blockSizes) && Objects.equals(blockStarts, bedRecord.blockStarts); } private  BedRecord(final Format format, final String chrom, final long start, final long end, final String name, final String score, final String strand,
                     final long thickStart, final long thickEnd, final String itemRgb, final int blockCount, final long[] blockSizes, final long[] blockStarts);  BedRecord(final String chrom, final long start, final long end);  BedRecord(final String chrom, final long start, final long end, final String name);  BedRecord(final String chrom, final long start, final long end, final String name, final String score);  BedRecord(final String chrom, final long start, final long end, final String name, final String score, final String strand);  BedRecord(final String chrom, final long start, final long end, final String name, final String score, final String strand,
                     final long thickStart, final long thickEnd, final String itemRgb, final int blockCount, final long[] blockSizes, final long[] blockStarts); String chrom(); long start(); long end(); String name(); String score(); String strand(); long thickStart(); long thickEnd(); String itemRgb(); int blockCount(); long[] blockSizes(); long[] blockStarts(); Format format(); Range<Long> toRange(); @Override int hashCode(); @Override boolean equals(final Object o); @Override String toString(); static BedRecord valueOf(final String value);  }
@Test public void testEquals() { BedRecord record1 = valueOf("chr1\t11873\t14409"); BedRecord record2 = valueOf("chr1\t11873\t14409\tuc001aaa.3"); assertTrue(record1.equals(record1)); assertTrue(record2.equals(record2)); assertFalse(record1.equals(record2)); assertFalse(record2.equals(record1)); assertFalse(record1.equals(new Object())); }