public boolean isSameDay ( Day compared ) { if ( compared == null ) return false ; return this . getMonth ( ) == compared . getMonth ( ) && this . getDayOfMonth ( ) == compared . getDayOfMonth ( ) && this . getYear ( ) == compared . getYear ( ) ; }
Compare based on month day year