Here you can find the source of put2DayOfWeekMaps(int pDayOfWeek, String pDayName)
Parameter | Description |
---|---|
pDayOfWeek | a parameter |
pDayName | a parameter |
private static void put2DayOfWeekMaps(int pDayOfWeek, String pDayName)
//package com.java2s; /**// w ww. jav a 2s. c o m Copyright 2014 Jens Glufke Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. * ----------------------------------------------------------------------- * */ import java.util.HashMap; public class Main { /** * key - day name as reference in Android 'BYDAY' parameter * value - day of week according Calendar */ private static HashMap<String, Integer> dayName2DayOfWeek = new HashMap<String, Integer>(); /** * key - day of week according Calendar * value - day name as reference in Android 'BYDAY' parameter */ private static String[] dayOfWeek2DayName = new String[8]; /** * * @param pDayOfWeek * @param pDayName * */ private static void put2DayOfWeekMaps(int pDayOfWeek, String pDayName) { dayOfWeek2DayName[pDayOfWeek] = pDayName; dayName2DayOfWeek.put(pDayName, pDayOfWeek); } }