public static Calendar popCalendar ( ) { Calendar result ; Deque < Calendar > calendars = CALENDARS . get ( ) ; if ( calendars . isEmpty ( ) ) { result = Calendar . getInstance ( ) ; } else { result = calendars . pop ( ) ; } return result ; }
Acquire a calendar instance .