|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectplainDate
public class plainDate
plainDate is a way to read the date information from an assignment.
| Constructor Summary | |
|---|---|
plainDate()
|
|
plainDate(int day,
int month,
int year)
plainDate collects all the calendar data with functions that suit our input file |
|
plainDate(int day,
java.lang.String monthString,
int year)
plainDate with a non-numerical month |
|
plainDate(java.lang.String dayMonthLine,
int year)
plainDate(line, year) uses a string in this format: 09 Dec, Tue |
|
| Method Summary | |
|---|---|
plainDate |
addDays(int numDays)
Return a day in the future (or past) counting by days |
static int |
convertDate(java.lang.String month)
|
static long |
daysBetween(java.util.Calendar startDate,
java.util.Calendar endDate)
|
int |
differenceInDaysInclusive(plainDate pDate)
|
boolean |
equals(plainDate pDate)
|
java.util.Calendar |
getCalendar()
|
int |
getDay()
|
int |
getDayOfWeekFromMonday()
|
int |
getMonth()
|
plainDate |
getToday(boolean sysPrint)
|
boolean |
getValidDate()
|
java.lang.String |
getWeekdayName()
|
int |
getYear()
|
static int |
parseDay(java.lang.String line)
|
static java.lang.String |
parseMonth(java.lang.String line)
|
java.lang.String |
sysPrint(boolean printIt)
sysPrint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public plainDate()
public plainDate(java.lang.String dayMonthLine,
int year)
public plainDate(int day,
java.lang.String monthString,
int year)
monthString - is of the format: Dec
public plainDate(int day,
int month,
int year)
day - 1-31month - 1-12year - for example 2015| Method Detail |
|---|
public boolean getValidDate()
public int getDay()
public int getMonth()
public int getYear()
public java.util.Calendar getCalendar()
public boolean equals(plainDate pDate)
public int getDayOfWeekFromMonday()
public java.lang.String getWeekdayName()
public int differenceInDaysInclusive(plainDate pDate)
public static long daysBetween(java.util.Calendar startDate,
java.util.Calendar endDate)
public plainDate addDays(int numDays)
public java.lang.String sysPrint(boolean printIt)
printIt - - Does it produce printout?
public static int parseDay(java.lang.String line)
public static java.lang.String parseMonth(java.lang.String line)
public static int convertDate(java.lang.String month)
public plainDate getToday(boolean sysPrint)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||