public DayOfTheWeek previous ( ) { if ( this == PH ) { return null ; } final int nextId = id - 1 ; for ( final DayOfTheWeek dow : ALL ) { if ( dow . id == nextId ) { return dow ; } } return SUN ; }
Returns the previous day .