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