Package org.bedework.calfacade
Class BwRecurrenceInstance
java.lang.Object
org.bedework.calfacade.BwRecurrenceInstance
- All Implemented Interfaces:
Serializable,Comparable<BwRecurrenceInstance>,Comparator<BwRecurrenceInstance>
public class BwRecurrenceInstance
extends Object
implements Comparable<BwRecurrenceInstance>, Comparator<BwRecurrenceInstance>, Serializable
Class to represent an instance of a recurrence. An instance is represented by
the date and time of its dtStart and dtEnd together with a recurrence id. We
maintain a reference to the master event and a possibly null reference to
an overiding event object which contains changes, (annotations etc) to that
instance.
- Version:
- 1.0
- Author:
- Mike Douglass douglm@bedework.edu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(BwRecurrenceInstance inst1, BwRecurrenceInstance inst2) intbooleangetDtend()Get the event's endGet the event's startGet the event's recurrence idintgetSeq()Get the entity seqinthashCode()voidsetDtend(BwDateTime val) Set the event's endvoidsetDtstart(BwDateTime val) Set the event's startvoidvoidvoidsetRecurrenceId(String val) Set the event's recurrence idvoidsetSeq(int val) Set the seq for this entitytoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BwRecurrenceInstance
public BwRecurrenceInstance()Constructor
-
-
Method Details
-
setSeq
public void setSeq(int val) Set the seq for this entity- Parameters:
val- int seq
-
getSeq
public int getSeq()Get the entity seq- Returns:
- int the entity seq
-
setDtstart
Set the event's start- Parameters:
val- Event's start
-
getDtstart
Get the event's start- Returns:
- The event's start
-
setDtend
Set the event's end- Parameters:
val- Event's end
-
getDtend
Get the event's end- Returns:
- The event's end
-
setRecurrenceId
Set the event's recurrence id- Parameters:
val- recurrence id
-
getRecurrenceId
Get the event's recurrence id- Returns:
- the event's recurrence id
-
getMaster
- Returns:
- Returns the master.
-
setMaster
- Parameters:
val- The master to set.
-
getOverride
- Returns:
- Returns the override.
-
setOverride
- Parameters:
val- The override to set.
-
compare
- Specified by:
comparein interfaceComparator<BwRecurrenceInstance>
-
compareTo
- Specified by:
compareToin interfaceComparable<BwRecurrenceInstance>
-
hashCode
public int hashCode() -
equals
- Specified by:
equalsin interfaceComparator<BwRecurrenceInstance>- Overrides:
equalsin classObject
-
toString
-