Package winterwell.utils

Examples of winterwell.utils.Key$RichKey


   * @param map
   *            Keys may be Keys or Strings (which will be converted to Keys)
   */
  public Properties(Map map) {
    for (Object k : map.keySet()) {
      Key key;
      if (k instanceof Key) {
        key = (Key) k;
      } else {
        key = new Key((String) k);
      }
      put(key, map.get(k));
    }
  }
View Full Code Here


   * @param keyValuePairs
   */
  public Properties(Object... keyValuePairs) {
    assert keyValuePairs.length % 2 == 0 : keyValuePairs;
    for (int i = 0; i < keyValuePairs.length; i += 2) {
      Key key = (Key) keyValuePairs[i];
      put(key, keyValuePairs[i + 1]);
    }
  }
View Full Code Here

TOP

Related Classes of winterwell.utils.Key$RichKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.