### Question:
Range implements AutoCloseable { public boolean overlaps(Range other) { return this.getLow().compareTo(other.getHigh()) <= 0 && other.getLow().compareTo(this.getHigh()) <= 0; } @JsonCreator  Range(
            @JsonProperty("low") Marker low,
            @JsonProperty("high") Marker high); static Range all(BlockAllocator allocator, ArrowType type); static Range greaterThan(BlockAllocator allocator, ArrowType type, Object low); static Range greaterThanOrEqual(BlockAllocator allocator, ArrowType type, Object low); static Range lessThan(BlockAllocator allocator, ArrowType type, Object high); static Range lessThanOrEqual(BlockAllocator allocator, ArrowType type, Object high); static Range equal(BlockAllocator allocator, ArrowType type, Object value); static Range range(BlockAllocator allocator, ArrowType type, Object low, boolean lowInclusive, Object high, boolean highInclusive); ArrowType getType(); @JsonProperty Marker getLow(); @JsonProperty Marker getHigh(); @Transient boolean isSingleValue(); @Transient Object getSingleValue(); @Transient boolean isAll(); boolean includes(ValueMarker marker); boolean contains(Range other); Range span(Range other); boolean overlaps(Range other); Range intersect(Range other); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override void close();  }### Answer:
@Test public void testOverlaps() throws Exception { assertTrue(Range.greaterThan(allocator, BIGINT.getType(), 1L).overlaps(Range.lessThanOrEqual(allocator, BIGINT.getType(), 2L))); assertFalse(Range.greaterThan(allocator, BIGINT.getType(), 2L).overlaps(Range.lessThan(allocator, BIGINT.getType(), 2L))); assertTrue(Range.range(allocator, BIGINT.getType(), 1L, true, 3L, false).overlaps(Range.equal(allocator, BIGINT.getType(), 2L))); assertTrue(Range.range(allocator, BIGINT.getType(), 1L, true, 3L, false).overlaps(Range.range(allocator, BIGINT.getType(), 2L, false, 10L, false))); assertFalse(Range.range(allocator, BIGINT.getType(), 1L, true, 3L, false).overlaps(Range.range(allocator, BIGINT.getType(), 3L, true, 10L, false))); assertTrue(Range.range(allocator, BIGINT.getType(), 1L, true, 3L, true).overlaps(Range.range(allocator, BIGINT.getType(), 3L, true, 10L, false))); assertTrue(Range.all(allocator, BIGINT.getType()).overlaps(Range.equal(allocator, BIGINT.getType(), Long.MAX_VALUE))); }