Guest User

API for DayOfWeek enum

a guest
Jan 4th, 2014
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.     /** Accessor to the abbreviation for this day.
  2.      * @return char the one-letter abbreviation
  3.      */
  4.     public char letter()
  5.  
  6.     /** Accessor to a List of days, in order.
  7.      * @return List<DayOfWeek> list of the days.
  8.      */
  9.     public static List<DayOfWeek> getDays()
  10.  
  11.     /** Get the day corresponding to the specified letter.
  12.      * @param letter an abbreviation for a day.
  13.      * @return DayOfWeek the day which matches the given letter.
  14.      */
  15.     public static DayOfWeek toDayOfWeek(char letter)
  16.  
  17.     /** Get the day following this one.
  18.      * @return DayOfWeek day that follows this one in the defined sequence.
  19.      */
  20.     public DayOfWeek next()
Advertisement
Add Comment
Please, Sign In to add comment