test_class.file: culvert-main/src/test/java/com/bah/culvert/data/CRangeTest.java
test_class.identifier: CRangeTest
test_case.body: @Test
    public void testCRangeEquals() {
      CRange c1 = new CRange();
      CRange c2 = new CRange(new byte[] { 0 });
      CRange c3 = new CRange(new byte[] { 0 }, new byte[] { 5 });
      CRange c4 = new CRange(new byte[] { 0 }, true, new byte[] { 5 }, false);
  
      Assert.assertFalse(c1.equals(null));
      Assert.assertFalse(c1.equals(c2));
      Assert.assertTrue(c2.equals(c2));
      Assert.assertFalse(c2.equals(c3));
      Assert.assertFalse(c3.equals(c4));
    }
test_case.class_method_signature: CRangeTest.testCRangeEquals()
test_case.full_signature: @Test public void testCRangeEquals()
test_case.identifier: testCRangeEquals
test_case.invocations: assertFalse equals assertFalse equals assertTrue equals assertFalse equals assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCRangeEquals()
focal_class.declarator: start
focal_class.modifier: private
focal_class.original_string: private byte[] start;
focal_class.type: byte[]
focal_class.var_name: start
focal_class.declarator: startInclusive
focal_class.modifier: private
focal_class.original_string: private boolean startInclusive;
focal_class.type: boolean
focal_class.var_name: startInclusive
focal_class.declarator: end
focal_class.modifier: private
focal_class.original_string: private byte[] end;
focal_class.type: byte[]
focal_class.var_name: end
focal_class.declarator: endInclusive
focal_class.modifier: private
focal_class.original_string: private boolean endInclusive;
focal_class.type: boolean
focal_class.var_name: endInclusive
focal_class.declarator: FULL_TABLE_RANGE = new CRange(new byte[0])
focal_class.modifier: public static final
focal_class.original_string: public static final CRange FULL_TABLE_RANGE = new CRange(new byte[0]);
focal_class.type: CRange
focal_class.var_name: FULL_TABLE_RANGE
focal_class.file: culvert-main/src/main/java/com/bah/culvert/data/CRange.java
focal_class.identifier: CRange
focal_class.interfaces: implements WritableComparable<CRange>
focal_class.class_method_signature: CRange.CRange()
focal_class.full_signature: public  CRange()
focal_class.identifier: CRange
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CRange()
focal_class.class_method_signature: CRange.CRange(byte[] start)
focal_class.full_signature: public  CRange(byte[] start)
focal_class.identifier: CRange
focal_class.modifiers: public
focal_class.parameters: (byte[] start)
focal_class.signature:  CRange(byte[] start)
focal_class.class_method_signature: CRange.CRange(byte[] start, byte[] end)
focal_class.full_signature: public  CRange(byte[] start, byte[] end)
focal_class.identifier: CRange
focal_class.modifiers: public
focal_class.parameters: (byte[] start, byte[] end)
focal_class.signature:  CRange(byte[] start, byte[] end)
focal_class.class_method_signature: CRange.CRange(byte[] start, boolean startInclusive, byte[] end,
        boolean endInclusive)
focal_class.full_signature: public  CRange(byte[] start, boolean startInclusive, byte[] end,
        boolean endInclusive)
focal_class.identifier: CRange
focal_class.modifiers: public
focal_class.parameters: (byte[] start, boolean startInclusive, byte[] end,
        boolean endInclusive)
focal_class.signature:  CRange(byte[] start, boolean startInclusive, byte[] end,
        boolean endInclusive)
focal_class.class_method_signature: CRange.readFields(DataInput in)
focal_class.full_signature: @Override public void readFields(DataInput in)
focal_class.identifier: readFields
focal_class.modifiers: @Override public
focal_class.parameters: (DataInput in)
focal_class.return: void
focal_class.signature: void readFields(DataInput in)
focal_class.class_method_signature: CRange.write(DataOutput out)
focal_class.full_signature: @Override public void write(DataOutput out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataOutput out)
focal_class.return: void
focal_class.signature: void write(DataOutput out)
focal_class.class_method_signature: CRange.compareTo(CRange other)
focal_class.full_signature: @Override public int compareTo(CRange other)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (CRange other)
focal_class.return: int
focal_class.signature: int compareTo(CRange other)
focal_class.class_method_signature: CRange.getStart()
focal_class.full_signature: public byte[] getStart()
focal_class.identifier: getStart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getStart()
focal_class.class_method_signature: CRange.isStartInclusive()
focal_class.full_signature: public boolean isStartInclusive()
focal_class.identifier: isStartInclusive
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isStartInclusive()
focal_class.class_method_signature: CRange.getEnd()
focal_class.full_signature: public byte[] getEnd()
focal_class.identifier: getEnd
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getEnd()
focal_class.class_method_signature: CRange.isEndInclusive()
focal_class.full_signature: public boolean isEndInclusive()
focal_class.identifier: isEndInclusive
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEndInclusive()
focal_class.class_method_signature: CRange.equals(Object other)
focal_class.full_signature: @Override public boolean equals(Object other)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object other)
focal_class.return: boolean
focal_class.signature: boolean equals(Object other)
focal_class.class_method_signature: CRange.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_method.body: @Override
    public boolean equals(Object other) {
      LexicographicBytesComparator bytesComparator = LexicographicBytesComparator.INSTANCE;
      if (!(other instanceof CRange)) {
        return false;
      }
  
      CRange compare = (CRange) other;
  
      if ((start == null && compare.start != null) || end == null
          && compare.end != null) {
        return false;
      }
  
      if ((start != null && compare.start == null) || end != null
          && compare.end == null) {
        return false;
      }
      if (bytesComparator.compare(start, compare.start) == 0) {
        if (startInclusive == compare.startInclusive) {
          if (bytesComparator.compare(end, compare.end) == 0) {
            if (endInclusive == compare.endInclusive) {
              return true;
            }
          }
        }
      }
  
      return false;
    }
focal_method.class_method_signature: CRange.equals(Object other)
focal_method.full_signature: @Override public boolean equals(Object other)
focal_method.identifier: equals
focal_method.invocations: compare compare
focal_method.modifiers: @Override public
focal_method.parameters: (Object other)
focal_method.return: boolean
focal_method.signature: boolean equals(Object other)