Coverage Report - de.jollyday.holidaytype.LocalizedHolidayType
 
Classes in this File Line Coverage Branch Coverage Complexity
LocalizedHolidayType
100%
3/3
N/A
1
LocalizedHolidayType$1
50%
1/2
N/A
1
LocalizedHolidayType$2
50%
1/2
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 Sven Diedrichsen 
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License"); 
 5  
  * you may not use this file except in compliance with the License. 
 6  
  * You may obtain a copy of the License at 
 7  
  * 
 8  
  * http://www.apache.org/licenses/LICENSE-2.0 
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software 
 11  
  * distributed under the License is distributed on an 
 12  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 13  
  * express or implied. See the License for the specific language 
 14  
  * governing permissions and limitations under the License. 
 15  
  */
 16  
 package de.jollyday.holidaytype;
 17  
 
 18  
 import de.jollyday.HolidayType;
 19  
 
 20  
 /**
 21  
  * Represents a localized version of a holiday type. This type identifies a
 22  
  * holiday and can be used to make a distinction for all returned holidays.
 23  
  * (e.g. is the holiday a public holiday or not)
 24  
  *
 25  
  * @author tboven
 26  
  * @version $Id: $
 27  
  */
 28  5
 public enum LocalizedHolidayType implements HolidayType {
 29  1
         OFFICIAL_HOLIDAY {
 30  
                 /*
 31  
                  * (non-Javadoc)
 32  
                  * 
 33  
                  * @see de.jollyday.HolidayType#isOfficialHoliday()
 34  
                  */
 35  
                 @Override
 36  
                 public boolean isOfficialHoliday() {
 37  0
                         return true;
 38  
                 }
 39  
         },
 40  1
         UNOFFICIAL_HOLIDAY {
 41  
                 /*
 42  
                  * (non-Javadoc)
 43  
                  * 
 44  
                  * @see de.jollyday.HolidayType#isOfficialHoliday()
 45  
                  */
 46  
                 @Override
 47  
                 public boolean isOfficialHoliday() {
 48  0
                         return false;
 49  
                 }
 50  
         };
 51  
 
 52  
 }