List of usage examples for java.util Map toString
public String toString()
From source file:control.LoadControler.java
public static Map<String, Integer> loadmainSettings(String filePath) { Map<String, Integer> list = new HashMap<>(); File file = new File(userPath(filePath)); try {//from w w w . j ava 2 s . c o m PropertiesReader ppr = new PropertiesReader(file.getCanonicalPath()); Properties properties = ppr.readProperties(); try { Integer nbInitSoldatsParHeros = Integer.parseInt(properties.getProperty("nbInitSoldatsParHeros")); Integer xpInit = Integer.parseInt(properties.getProperty("xpInit")); Integer popNiveau10 = Integer.parseInt(properties.getProperty("popNiveau10")); list.put("nbInitSoldatsParHeros", nbInitSoldatsParHeros); list.put("xpInit", xpInit); list.put("popNiveau10", popNiveau10); System.out.println(list.toString()); //DEBUG } catch (NumberFormatException e) { e.printStackTrace(); System.out.println("##### Erreur lors de la lecture des paramtres gnraux #####"); JOptionPane.showMessageDialog(null, e); } } catch (IOException ex) { Logger.getLogger(LoadControler.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog(null, ex); } return list; }
From source file:no.uis.fsws.proxy.StudinfoServiceFactory.java
@ManagedOperation(description = "Get transformer URLs per username as a String") public String getTransformerUrlsAsString() { // TODO: this string could be cached synchronized (transformerUrls) { Map<String, URL> m = new TreeMap<>(transformerUrls); return m.toString(); }//from w w w . j a va 2 s .c om }
From source file:ch.epfl.data.squall.utilities.SquallSerializationDelegate.java
@Override public void prepare(Map stormConf) { super.prepare(stormConf); LOG.info("Setting up SquallSerializationDelegate"); LOG.info(stormConf.toString()); try {/* w w w .j a v a2 s.c om*/ String classdirPath = (String) stormConf.get("squall.classdir"); if (classdirPath != null) { classdir = new File(classdirPath).toURL(); LOG.info("Adding '" + classdir + "' as search path for deserializing"); } else { throw new RuntimeException( "Squall Serialization delegate was set, but option squall.classdir is empty"); } } catch (MalformedURLException e) { throw new RuntimeException(e); } }
From source file:egovframework.oe1.cms.cmm.notify.email.service.impl.EgovOe1SSLMailDAO.java
/** * ?? ? ? /*www .j a va2s . c o m*/ * * @param fileNames ?ID * @return * @throws Exception */ public List<EgovMap> selectFileList(List<String> fileNames) throws Exception { Map<String, List<String>> map = new HashMap<String, List<String>>(); map.put("atchFileIds", fileNames); log.debug(this.getClass() + " selectFileList : " + map.toString()); return list("oe1SSLMailDAO.selectFileList", map); }
From source file:acromusashi.stream.example.topology.config.ConfigReloadSpout.java
/** * {@inheritDoc}/*from w w w . jav a 2s . c o m*/ */ @Override public void onUpdate(Map<String, Object> reloadedConfig) { String msgFormat = "Config uploaded. : Config={0}"; logger.info(MessageFormat.format(msgFormat, reloadedConfig.toString())); }
From source file:org.apache.hadoop.hive.ql.optimizer.physical.NullScanTaskDispatcher.java
private String encode(Map<String, String> partSpec) { return partSpec.toString().replaceAll("[:/#\\?]", "_"); }
From source file:com.bluebeamapps.httprequest.BBAStringRequest.java
public void setBody(Map<String, String> body) { if (body == null) { this.body = null; } else {//from w w w .j av a2 s .c om this.body = body.toString(); } }
From source file:com.huofu.RestaurantOS.manager.ApisManager.java
/** * ?//from www . jav a 2 s .co m * @param orderId * @param repast_date * @param timebucketId * @param checkout_type * @param port_id * @param callback */ public static void orderAllCheckout(String orderId, String repast_date, long timebucketId, int checkout_type, long port_id, ApiCallback callback) { Map map = new HashMap(); map.put("order_id", orderId); map.put("repast_date", repast_date); map.put("time_bucket_id", timebucketId); map.put("checkout_type", checkout_type); map.put("port_id", port_id); CommonUtils.LogWuwei(PushMealActivity.tag, "??:" + map.toString()); new SetOrderAllCheckout().requestWithParams(map, callback); }
From source file:org.encuestame.oauth2.support.OAuth2Support.java
public AccessGrant exchangeForAccess(String authorizationCode, String redirectUri) { log.debug("exchangeForAccess:{" + authorizationCode); log.debug("exchangeForAccess redirectUri{: " + redirectUri); MultiValueMap<String, String> requestParameters = new LinkedMultiValueMap<String, String>(); requestParameters.set("client_id", clientId); requestParameters.set("client_secret", clientSecret); requestParameters.set("code", authorizationCode); requestParameters.set("redirect_uri", redirectUri); requestParameters.set("grant_type", "authorization_code"); log.debug("requestParameters " + requestParameters.toString()); Map result = getRestTemplate().postForObject(accessTokenUrl, requestParameters, Map.class); log.debug("Access Grant " + result.toString()); return new AccessGrant(valueOf(result.get("access_token")), valueOf(result.get("refresh_token"))); }
From source file:org.godotengine.godot.RemoteConfig.java
public void setDefaults(final String defaults) { if (!isInitialized()) { return; }//w w w .j a v a2s . c o m Map<String, Object> defaultsMap = Utils.jsonToMap(defaults); Utils.d("RemoteConfig: Setting Default values, " + defaultsMap.toString()); mFirebaseRemoteConfig.setDefaults(defaultsMap); }