test_class.file: series/src/test/java/com/barchart/feed/series/TradingSessionImplTest.java
test_class.identifier: TradingSessionImplTest
test_case.body: @Test
      public void testSessionMillis() {
          long millisInHour = 3600000;
          long millisInDay = millisInHour * 24;
          
          DateTime dt = new DateTime(2010, 9, 13, 0, 0, 0, 0);  //Monday
          DateTime dt2 = new DateTime(2010, 9, 15, 0, 0, 0, 0); //Wednesday
          
          long sessionMillis = TradingSessionImpl.sessionMillis(
                  dt.dayOfWeek().get(), dt.toLocalTime(), dt2.dayOfWeek().get(), dt2.toLocalTime());
          assertEquals(millisInDay * 2, sessionMillis);
          
          //Test rollover across Sunday boundary
          dt = new DateTime(2010, 9, 12, 0, 0, 0, 0);     //Sunday
          dt2 = new DateTime(2010, 9, 14, 0, 0, 0, 0);    //Tuesday
          
          sessionMillis = TradingSessionImpl.sessionMillis(
                  dt.dayOfWeek().get(), dt.toLocalTime(), dt2.dayOfWeek().get(), dt2.toLocalTime());
          assertEquals(millisInDay * 2, sessionMillis);
      }
test_case.class_method_signature: TradingSessionImplTest.testSessionMillis()
test_case.full_signature: @Test public void testSessionMillis()
test_case.identifier: testSessionMillis
test_case.invocations: sessionMillis get dayOfWeek toLocalTime get dayOfWeek toLocalTime assertEquals sessionMillis get dayOfWeek toLocalTime get dayOfWeek toLocalTime assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSessionMillis()
focal_class.declarator: day
focal_class.modifier: private
focal_class.original_string: private int day;
focal_class.type: int
focal_class.var_name: day
focal_class.declarator: endDay
focal_class.modifier: private
focal_class.original_string: private int endDay;
focal_class.type: int
focal_class.var_name: endDay
focal_class.declarator: start
focal_class.modifier: private
focal_class.original_string: private LocalTime start;
focal_class.type: LocalTime
focal_class.var_name: start
focal_class.declarator: end
focal_class.modifier: private
focal_class.original_string: private LocalTime end;
focal_class.type: LocalTime
focal_class.var_name: end
focal_class.declarator: MILLIS_IN_DAY = 86400000
focal_class.modifier: private static final
focal_class.original_string: private static final int MILLIS_IN_DAY = 86400000;
focal_class.type: int
focal_class.var_name: MILLIS_IN_DAY
focal_class.declarator: SESSION_MILLIS
focal_class.modifier: private final
focal_class.original_string: private final long SESSION_MILLIS;
focal_class.type: long
focal_class.var_name: SESSION_MILLIS
focal_class.file: series/src/main/java/com/barchart/feed/series/TradingSessionImpl.java
focal_class.identifier: TradingSessionImpl
focal_class.interfaces: implements TradingSession
focal_class.class_method_signature: TradingSessionImpl.TradingSessionImpl(int day, int endDay, LocalTime start, LocalTime end)
focal_class.full_signature: public  TradingSessionImpl(int day, int endDay, LocalTime start, LocalTime end)
focal_class.identifier: TradingSessionImpl
focal_class.modifiers: public
focal_class.parameters: (int day, int endDay, LocalTime start, LocalTime end)
focal_class.signature:  TradingSessionImpl(int day, int endDay, LocalTime start, LocalTime end)
focal_class.class_method_signature: TradingSessionImpl.hourCount()
focal_class.full_signature: @Override public int hourCount()
focal_class.identifier: hourCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hourCount()
focal_class.class_method_signature: TradingSessionImpl.day()
focal_class.full_signature: @Override public int day()
focal_class.identifier: day
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int day()
focal_class.class_method_signature: TradingSessionImpl.endDay()
focal_class.full_signature: @Override public int endDay()
focal_class.identifier: endDay
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int endDay()
focal_class.class_method_signature: TradingSessionImpl.start()
focal_class.full_signature: @Override public LocalTime start()
focal_class.identifier: start
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LocalTime
focal_class.signature: LocalTime start()
focal_class.class_method_signature: TradingSessionImpl.end()
focal_class.full_signature: @Override public LocalTime end()
focal_class.identifier: end
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LocalTime
focal_class.signature: LocalTime end()
focal_class.class_method_signature: TradingSessionImpl.sessionMillis()
focal_class.full_signature: @Override public long sessionMillis()
focal_class.identifier: sessionMillis
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long sessionMillis()
focal_class.class_method_signature: TradingSessionImpl.sessionMillis(DateTime startDate, DateTime endDate)
focal_class.full_signature: public static long sessionMillis(DateTime startDate, DateTime endDate)
focal_class.identifier: sessionMillis
focal_class.modifiers: public static
focal_class.parameters: (DateTime startDate, DateTime endDate)
focal_class.return: long
focal_class.signature: long sessionMillis(DateTime startDate, DateTime endDate)
focal_class.class_method_signature: TradingSessionImpl.sessionMillis(int startDay, LocalTime startTime, int endDay, LocalTime endTime)
focal_class.full_signature: public static long sessionMillis(int startDay, LocalTime startTime, int endDay, LocalTime endTime)
focal_class.identifier: sessionMillis
focal_class.modifiers: public static
focal_class.parameters: (int startDay, LocalTime startTime, int endDay, LocalTime endTime)
focal_class.return: long
focal_class.signature: long sessionMillis(int startDay, LocalTime startTime, int endDay, LocalTime endTime)
focal_class.class_method_signature: TradingSessionImpl.dayToString()
focal_class.full_signature: @Override public String dayToString()
focal_class.identifier: dayToString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String dayToString()
focal_class.class_method_signature: TradingSessionImpl.contains(DateTime date)
focal_class.full_signature: @Override public boolean contains(DateTime date)
focal_class.identifier: contains
focal_class.modifiers: @Override public
focal_class.parameters: (DateTime date)
focal_class.return: boolean
focal_class.signature: boolean contains(DateTime date)
focal_class.class_method_signature: TradingSessionImpl.dayIsWithinSessionDay(int otherDay)
focal_class.full_signature: private boolean dayIsWithinSessionDay(int otherDay)
focal_class.identifier: dayIsWithinSessionDay
focal_class.modifiers: private
focal_class.parameters: (int otherDay)
focal_class.return: boolean
focal_class.signature: boolean dayIsWithinSessionDay(int otherDay)
focal_class.class_method_signature: TradingSessionImpl.dayIsBetweenStartEndDays(int otherDay)
focal_class.full_signature: private boolean dayIsBetweenStartEndDays(int otherDay)
focal_class.identifier: dayIsBetweenStartEndDays
focal_class.modifiers: private
focal_class.parameters: (int otherDay)
focal_class.return: boolean
focal_class.signature: boolean dayIsBetweenStartEndDays(int otherDay)
focal_class.class_method_signature: TradingSessionImpl.compareTo(TradingSession other)
focal_class.full_signature: @Override public int compareTo(TradingSession other)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (TradingSession other)
focal_class.return: int
focal_class.signature: int compareTo(TradingSession other)
focal_class.class_method_signature: TradingSessionImpl.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: TradingSessionImpl.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: TradingSessionImpl.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: @Override
  	public long sessionMillis() {
          return SESSION_MILLIS;
      }
focal_method.class_method_signature: TradingSessionImpl.sessionMillis()
focal_method.full_signature: @Override public long sessionMillis()
focal_method.identifier: sessionMillis
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long sessionMillis()