test_class.file: culvert-main/src/test/java/com/bah/culvert/constraints/IndexRangeConstraintTest.java
test_class.identifier: IndexRangeConstraintTest
test_case.body: @Test
    public void testIndexRangeEquals() {
      CRange range = new CRange();
      CRange range2 = new CRange(new byte[] { 0 });
      CRange range3 = new CRange(new byte[] { 0 }, new byte[] { 3 });
      IndexRangeConstraint i1 = new IndexRangeConstraint(null, null);
      IndexRangeConstraint i2 = new IndexRangeConstraint(null, range);
      IndexRangeConstraint i3 = new IndexRangeConstraint(null, range2);
      IndexRangeConstraint i4 = new IndexRangeConstraint(null, range3);
  
      Assert.assertFalse(i1.equals(null));
      Assert.assertTrue(i1.equals(i1));
      Assert.assertFalse(i1.equals(i2));
      Assert.assertFalse(i3.equals(i4));
  
    }
test_case.class_method_signature: IndexRangeConstraintTest.testIndexRangeEquals()
test_case.full_signature: @Test public void testIndexRangeEquals()
test_case.identifier: testIndexRangeEquals
test_case.invocations: assertFalse equals assertTrue equals assertFalse equals assertFalse equals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIndexRangeEquals()
focal_class.declarator: range = new CRange()
focal_class.modifier: private
focal_class.original_string: private CRange range = new CRange();
focal_class.type: CRange
focal_class.var_name: range
focal_class.declarator: index
focal_class.modifier: private
focal_class.original_string: private Index index;
focal_class.type: Index
focal_class.var_name: index
focal_class.file: culvert-main/src/main/java/com/bah/culvert/constraints/IndexRangeConstraint.java
focal_class.identifier: IndexRangeConstraint
focal_class.interfaces: implements Writable
focal_class.class_method_signature: IndexRangeConstraint.IndexRangeConstraint(Index index, CRange range)
focal_class.full_signature: public  IndexRangeConstraint(Index index, CRange range)
focal_class.identifier: IndexRangeConstraint
focal_class.modifiers: public
focal_class.parameters: (Index index, CRange range)
focal_class.signature:  IndexRangeConstraint(Index index, CRange range)
focal_class.class_method_signature: IndexRangeConstraint.IndexRangeConstraint()
focal_class.full_signature: public  IndexRangeConstraint()
focal_class.identifier: IndexRangeConstraint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  IndexRangeConstraint()
focal_class.class_method_signature: IndexRangeConstraint.getResultIterator()
focal_class.full_signature: @Override public SeekingCurrentIterator getResultIterator()
focal_class.identifier: getResultIterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: SeekingCurrentIterator
focal_class.signature: SeekingCurrentIterator getResultIterator()
focal_class.class_method_signature: IndexRangeConstraint.getRange()
focal_class.full_signature: public CRange getRange()
focal_class.identifier: getRange
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CRange
focal_class.signature: CRange getRange()
focal_class.class_method_signature: IndexRangeConstraint.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: IndexRangeConstraint.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: IndexRangeConstraint.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: IndexRangeConstraint.equals(Object compareto)
focal_class.full_signature: @Override public boolean equals(Object compareto)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object compareto)
focal_class.return: boolean
focal_class.signature: boolean equals(Object compareto)
focal_class.class_method_signature: IndexRangeConstraint.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_class.class_method_signature: IndexRangeConstraint.getIndex()
focal_class.full_signature: public Index getIndex()
focal_class.identifier: getIndex
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Index
focal_class.signature: Index getIndex()
focal_class.superclass: extends Constraint
focal_method.body: @Override
    public boolean equals(Object compareto) {
      if (!(compareto instanceof IndexRangeConstraint) || compareto == null) {
        return false;
      }
  
      IndexRangeConstraint compare = (IndexRangeConstraint) compareto;
  
      if (range == null && compare.getRange() != null) {
        return false;
      }
      
      if (range == null && compare.getRange() == null) {
          return true;
        }    
      
      if (range != null && compare.getRange() == null) {
          return false;
      }
      
      return range.equals(compare.getRange());
    }
focal_method.class_method_signature: IndexRangeConstraint.equals(Object compareto)
focal_method.full_signature: @Override public boolean equals(Object compareto)
focal_method.identifier: equals
focal_method.invocations: getRange getRange getRange equals getRange
focal_method.modifiers: @Override public
focal_method.parameters: (Object compareto)
focal_method.return: boolean
focal_method.signature: boolean equals(Object compareto)