Java Map Put put2DayOfWeekMaps(int pDayOfWeek, String pDayName)

Here you can find the source of put2DayOfWeekMaps(int pDayOfWeek, String pDayName)

Description

put Day Of Week Maps

License

Apache License

Parameter

Parameter Description
pDayOfWeek a parameter
pDayName a parameter

Declaration

private static void put2DayOfWeekMaps(int pDayOfWeek, String pDayName) 

Method Source Code

//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);
    }
}

Related

  1. put(Map map, K key, V value)
  2. put(Map map, K key, V value)
  3. put(Map map, String key, Object value)
  4. put(Map structure, String name, Object object)
  5. put(ThreadLocal> threadLocal, Object key, String value)
  6. putAbsent(Map dest, Map src)
  7. putAll(final Map dst, final Map src)
  8. putAll(M map, Iterable> values)
  9. putAll(Map original, Map... others)