com.graphhopper.util.Helper.camelCaseToUnderScore()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中com.graphhopper.util.Helper.camelCaseToUnderScore()方法的一些代码示例,展示了Helper.camelCaseToUnderScore()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.camelCaseToUnderScore()方法的具体详情如下:
包路径:com.graphhopper.util.Helper
类名称:Helper
方法名:camelCaseToUnderScore

Helper.camelCaseToUnderScore介绍

暂无

代码示例

代码示例来源:origin: graphhopper/graphhopper

  1. /**
  2. * For possible values see AlgorithmOptions.*
  3. */
  4. public GHRequest setAlgorithm(String algo) {
  5. if (algo != null)
  6. this.algo = Helper.camelCaseToUnderScore(algo);
  7. return this;
  8. }

代码示例来源:origin: graphhopper/graphhopper

  1. public PMap remove(String key) {
  2. // query accepts camelCase and under_score
  3. map.remove(Helper.camelCaseToUnderScore(key));
  4. return this;
  5. }

代码示例来源:origin: graphhopper/graphhopper

  1. public boolean has(String key) {
  2. // query accepts camelCase and under_score
  3. return map.containsKey(Helper.camelCaseToUnderScore(key));
  4. }

代码示例来源:origin: graphhopper/graphhopper

  1. public PMap put(String key, Object str) {
  2. if (str == null)
  3. throw new NullPointerException("Value cannot be null. Use remove instead.");
  4. // store in under_score
  5. map.put(Helper.camelCaseToUnderScore(key), str.toString());
  6. return this;
  7. }

代码示例来源:origin: graphhopper/graphhopper

  1. String get(String key) {
  2. if (Helper.isEmpty(key))
  3. return "";
  4. // query accepts camelCase and under_score
  5. String val = map.get(Helper.camelCaseToUnderScore(key));
  6. if (val == null)
  7. return "";
  8. return val;
  9. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. /**
  2. * For possible values see AlgorithmOptions.*
  3. */
  4. public GHRequest setAlgorithm( String algo )
  5. {
  6. if (algo != null)
  7. this.algo = Helper.camelCaseToUnderScore(algo);
  8. return this;
  9. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. /**
  2. * For possible values see AlgorithmOptions.*
  3. */
  4. public GHRequest setAlgorithm(String algo) {
  5. if (algo != null)
  6. this.algo = Helper.camelCaseToUnderScore(algo);
  7. return this;
  8. }

代码示例来源:origin: com.graphhopper/graphhopper-api

  1. /**
  2. * For possible values see AlgorithmOptions.*
  3. */
  4. public GHRequest setAlgorithm(String algo) {
  5. if (algo != null)
  6. this.algo = Helper.camelCaseToUnderScore(algo);
  7. return this;
  8. }

代码示例来源:origin: com.graphhopper/graphhopper-api

  1. public boolean has(String key) {
  2. // query accepts camelCase and under_score
  3. return map.containsKey(Helper.camelCaseToUnderScore(key));
  4. }

代码示例来源:origin: com.graphhopper/graphhopper-api

  1. public PMap remove(String key) {
  2. // query accepts camelCase and under_score
  3. map.remove(Helper.camelCaseToUnderScore(key));
  4. return this;
  5. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. public PMap remove(String key) {
  2. // query accepts camelCase and under_score
  3. map.remove(Helper.camelCaseToUnderScore(key));
  4. return this;
  5. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. public PMap remove( String key )
  2. {
  3. // query accepts camelCase and under_score
  4. map.remove(Helper.camelCaseToUnderScore(key));
  5. return this;
  6. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. public boolean has( String key )
  2. {
  3. // query accepts camelCase and under_score
  4. return map.containsKey(Helper.camelCaseToUnderScore(key));
  5. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. public boolean has(String key) {
  2. // query accepts camelCase and under_score
  3. return map.containsKey(Helper.camelCaseToUnderScore(key));
  4. }

代码示例来源:origin: com.graphhopper/graphhopper-api

  1. public PMap put(String key, Object str) {
  2. if (str == null)
  3. throw new NullPointerException("Value cannot be null. Use remove instead.");
  4. // store in under_score
  5. map.put(Helper.camelCaseToUnderScore(key), str.toString());
  6. return this;
  7. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. public PMap put( String key, Object str )
  2. {
  3. if (str == null)
  4. throw new NullPointerException("Value cannot be null. Use remove instead.");
  5. // store in under_score
  6. map.put(Helper.camelCaseToUnderScore(key), str.toString());
  7. return this;
  8. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. public PMap put(String key, Object str) {
  2. if (str == null)
  3. throw new NullPointerException("Value cannot be null. Use remove instead.");
  4. // store in under_score
  5. map.put(Helper.camelCaseToUnderScore(key), str.toString());
  6. return this;
  7. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. String get( String key )
  2. {
  3. if (Helper.isEmpty(key))
  4. return "";
  5. // query accepts camelCase and under_score
  6. String val = map.get(Helper.camelCaseToUnderScore(key));
  7. if (val == null)
  8. return "";
  9. return val;
  10. }

代码示例来源:origin: com.graphhopper/graphhopper-api

  1. String get(String key) {
  2. if (Helper.isEmpty(key))
  3. return "";
  4. // query accepts camelCase and under_score
  5. String val = map.get(Helper.camelCaseToUnderScore(key));
  6. if (val == null)
  7. return "";
  8. return val;
  9. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. String get(String key) {
  2. if (Helper.isEmpty(key))
  3. return "";
  4. // query accepts camelCase and under_score
  5. String val = map.get(Helper.camelCaseToUnderScore(key));
  6. if (val == null)
  7. return "";
  8. return val;
  9. }

相关文章