Class ConflictImpl
java.lang.Object
ch.tocco.nice2.optional.conflict.impl.ConflictImpl
- All Implemented Interfaces:
Conflict
-
Constructor Summary
ConstructorDescriptionConflictImpl
(CalendarEvent event1, CalendarEvent event2, DateTimeValue intersectionStart, DateTimeValue intersectionEnd, ConflictType type, ConflictDao conflictDao) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
int
hashCode()
boolean
void
setAccepted
(boolean accepted) void
void
setType
(ConflictType type)
-
Constructor Details
-
ConflictImpl
public ConflictImpl(CalendarEvent event1, CalendarEvent event2, DateTimeValue intersectionStart, DateTimeValue intersectionEnd, ConflictType type, ConflictDao conflictDao)
-
-
Method Details
-
getConflictingEvent1
- Specified by:
getConflictingEvent1
in interfaceConflict
- Returns:
- one of the
CalendarEvent
s that make up the conflict
-
getConflictingEvent2
- Specified by:
getConflictingEvent2
in interfaceConflict
- Returns:
- one of the
CalendarEvent
s that make up the conflict
-
isAccepted
public boolean isAccepted()- Specified by:
isAccepted
in interfaceConflict
-
setAccepted
public void setAccepted(boolean accepted) -
getIntersectionStart
- Specified by:
getIntersectionStart
in interfaceConflict
- Returns:
- the start date of the conflict.
-
getIntersectionEnd
- Specified by:
getIntersectionEnd
in interfaceConflict
- Returns:
- the end date of the conflict
-
getType
-
setType
-
getUniqueId
- Specified by:
getUniqueId
in interfaceConflict
- Returns:
- the unique id of the conflict.
-
setId
-
getEntity
-
equals
-
hashCode
public int hashCode()
-