test_class.declarator: range
test_class.modifier: private
test_class.original_string: private DateRange range;
test_class.type: DateRange
test_class.var_name: range
test_class.file: dddlib-utils/src/test/java/org/dayatang/utils/DateRangeTest.java
test_class.identifier: DateRangeTest
test_case.body: @Test
  	public void testContains() throws ParseException {
  		Date date = DateUtils.parseDate("2007-12-05 04:10:15", new String[] {"yyyy-M-d hh:mm:ss"});
  		assertTrue(range.contains(date));
  		date = DateUtils.parseDate("2007-12-15 23:10:15", new String[] {"yyyy-M-d hh:mm:ss"});
  		assertTrue(range.contains(date));
  		date = DateUtils.parseDate("2007-12-10 23:10:15", new String[] {"yyyy-M-d hh:mm:ss"});
  		assertTrue(range.contains(date));
  		date = DateUtils.parseDate("2007-11-10 23:10:15", new String[] {"yyyy-M-d hh:mm:ss"});
  		assertFalse(range.contains(date));
  		date = DateUtils.parseDate("2008-11-10 23:10:15", new String[] {"yyyy-M-d hh:mm:ss"});
  		assertFalse(range.contains(date));
  	}
test_case.class_method_signature: DateRangeTest.testContains()
test_case.full_signature: @Test public void testContains()
test_case.identifier: testContains
test_case.invocations: parseDate assertTrue contains parseDate assertTrue contains parseDate assertTrue contains parseDate assertFalse contains parseDate assertFalse contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testContains()
focal_class.declarator: serialVersionUID = -2800351591055572549L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -2800351591055572549L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: from
focal_class.modifier: private
focal_class.original_string: private Date from;
focal_class.type: Date
focal_class.var_name: from
focal_class.declarator: to
focal_class.modifier: private
focal_class.original_string: private Date to;
focal_class.type: Date
focal_class.var_name: to
focal_class.file: dddlib-utils/src/main/java/org/dayatang/utils/DateRange.java
focal_class.identifier: DateRange
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: DateRange.DateRange(Date from, Date to)
focal_class.full_signature: public  DateRange(Date from, Date to)
focal_class.identifier: DateRange
focal_class.modifiers: public
focal_class.parameters: (Date from, Date to)
focal_class.signature:  DateRange(Date from, Date to)
focal_class.class_method_signature: DateRange.getFrom()
focal_class.full_signature: public Date getFrom()
focal_class.identifier: getFrom
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getFrom()
focal_class.class_method_signature: DateRange.getTo()
focal_class.full_signature: public Date getTo()
focal_class.identifier: getTo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getTo()
focal_class.class_method_signature: DateRange.contains(Date date)
focal_class.full_signature: public boolean contains(Date date)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (Date date)
focal_class.return: boolean
focal_class.signature: boolean contains(Date date)
focal_class.class_method_signature: DateRange.equals(final Object other)
focal_class.full_signature: @Override public boolean equals(final Object other)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object other)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object other)
focal_class.class_method_signature: DateRange.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: DateRange.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_method.body: public boolean contains(Date date) {
          return (date.after(from) || DateUtils.isSameDay(date, from))
                  && (date.before(to) || DateUtils.isSameDay(date, to));
      }
focal_method.class_method_signature: DateRange.contains(Date date)
focal_method.full_signature: public boolean contains(Date date)
focal_method.identifier: contains
focal_method.invocations: after isSameDay before isSameDay
focal_method.modifiers: public
focal_method.parameters: (Date date)
focal_method.return: boolean
focal_method.signature: boolean contains(Date date)