Class DateRange
java.lang.Object
com.infinitekind.moneydance.model.DateRange
public class DateRange
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleancontains(long date)booleancontains(DateRange dateRange)booleancontains(java.util.Date date)booleancontainsInt(int date)booleanequals(java.lang.Object obj)java.lang.Stringformat(CustomDateFormat dateFormat)intgetEndDateInt()intgetNumDays()floatgetNumMonths()floatgetNumQuarters()floatgetNumWeeks()floatgetNumYears()intgetStartDateInt()inthashCode()DateRangeintersect(DateRange otherRange)Return the intersection of this date range and the given date rangestatic voidmain(java.lang.String[] argv)booleanoverlap(DateRange other)Returns true if: this ∍ otherStart || this ∍ otherEnd || other ∍ thisStart || other ∍ thisEndstatic DateRangerangeOfTxns(TransactionSet txns)Return the smallest date range that includes all of the transactions in the given setstatic DateRangerangeOfTxns(java.lang.Iterable<AbstractTxn> txns)Return the smallest date range that includes all of the transactions in the given setjava.lang.StringtoString()
-
Constructor Details
-
Method Details
-
getNumDays
public int getNumDays() -
getNumMonths
public final float getNumMonths() -
getNumWeeks
public final float getNumWeeks() -
getNumQuarters
public final float getNumQuarters() -
getNumYears
public final float getNumYears() -
contains
public final boolean contains(java.util.Date date) -
contains
-
contains
public final boolean contains(long date) -
containsInt
public final boolean containsInt(int date) -
intersect
Return the intersection of this date range and the given date range -
getEndDateInt
public final int getEndDateInt() -
getStartDateInt
public final int getStartDateInt() -
format
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
rangeOfTxns
Return the smallest date range that includes all of the transactions in the given set -
rangeOfTxns
Return the smallest date range that includes all of the transactions in the given set -
main
public static void main(java.lang.String[] argv) throws java.lang.Exception- Throws:
java.lang.Exception
-
overlap
Returns true if: this ∍ otherStart || this ∍ otherEnd || other ∍ thisStart || other ∍ thisEnd- Parameters:
other-- Returns:
-