Package | Description |
---|---|
com.neurosys.events.domain | |
com.neurosys.events.service | |
com.neurosys.utils |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEvent
A Event.
Default entity inheritance style is InheritanceType.TABLE_PER_CLASS since different event types will be structured around date. |
class |
Event
A Default Event Type
The default type entity uses a InheritanceType.SINGLE_TABLE , however any project using multiple type of events should consider extending directly from AbstractEvent
and using InheritanceType.TABLE_PER_CLASS since different event types will be structured around date and it will be more efficient. |
Modifier and Type | Method and Description |
---|---|
DateRange |
DefaultEventsService.intersection(DateRange e1,
DateRange e2)
Get the intersection (as an Event) between 2 Events.
|
DateRange |
EventsService.intersection(DateRange e1,
DateRange e2)
Get the intersection (as DateRange) between 2 DateRanges.
|
Modifier and Type | Method and Description |
---|---|
List<DateRange> |
DefaultEventsService.compliment(DateRange e1,
DateRange e2)
|
List<DateRange> |
EventsService.compliment(DateRange e1,
DateRange e2)
|
Modifier and Type | Method and Description |
---|---|
List<DateRange> |
DefaultEventsService.compliment(DateRange e1,
DateRange e2)
|
List<DateRange> |
EventsService.compliment(DateRange e1,
DateRange e2)
|
boolean |
DefaultEventsService.contains(DateRange e1,
DateRange e2)
Check if e1 contains e2 completely
|
boolean |
EventsService.contains(DateRange e1,
DateRange e2)
Check if e1 contains e2 completely
|
long |
DefaultEventsService.daysDiff(DateRange range,
boolean normalizeTime,
boolean factorDayStartNotMidNight)
Calculate number of days difference.
Note on Time Zone : It is very important to note that both the date should have the same JVM Time-Zone set in the Date. |
long |
EventsService.daysDiff(DateRange event,
boolean normalizeTime,
boolean factorDayStartNotMidNight)
Accounts for check-in time and check out time
|
DateRange |
DefaultEventsService.intersection(DateRange e1,
DateRange e2)
Get the intersection (as an Event) between 2 Events.
|
DateRange |
EventsService.intersection(DateRange e1,
DateRange e2)
Get the intersection (as DateRange) between 2 DateRanges.
|
boolean |
DefaultEventsService.overlaps(DateRange e1,
DateRange e2)
Check if 2 Date Ranges Overlap
|
boolean |
EventsService.overlaps(DateRange e1,
DateRange e2)
Check if 2 Date Ranges overlap
|
Modifier and Type | Method and Description |
---|---|
static DateRange |
DateRangeUtils.intersection(DateRange e1,
DateRange e2)
Get the overlap of event e1 in e2, including bound conditions
Example: If there are 2 Date ranges |
Modifier and Type | Method and Description |
---|---|
static List<DateRange> |
DateRangeUtils.compliment(DateRange e1,
DateRange e2)
|
Modifier and Type | Method and Description |
---|---|
static List<DateRange> |
DateRangeUtils.compliment(DateRange e1,
DateRange e2)
|
static boolean |
DateRangeUtils.contains(DateRange e1,
DateRange e2)
Check if e1 contains e2 completely; including bounds
|
static long |
DateRangeUtils.daysDiff(DateRange range,
boolean normalizeTime)
Calculate number of days difference.
Note on Time Zone : It is very important to note that both the date should have the same JVM Time-Zone set in the Date. |
static DateRange |
DateRangeUtils.intersection(DateRange e1,
DateRange e2)
Get the overlap of event e1 in e2, including bound conditions
Example: If there are 2 Date ranges |
static boolean |
DateRangeUtils.intersects(DateRange e1,
DateRange e2)
Check if 2 Date Ranges Overlap; including bounds
|
Copyright © 2018. All rights reserved.