org.apache.felix.utils.properties.Properties.contains()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(197)

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

Properties.contains介绍

[英]Checks if the value is in the given array.

The method returns false if a null array is passed in.
[中]检查该值是否在给定数组中。
如果传入null数组,则该方法返回false

代码示例

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

/**
 * Escape the separators in the key.
 *
 * @param key the key
 * @return the escaped key
 */
private static String escapeKey(String key)
{
  StringBuffer newkey = new StringBuffer();
  for (int i = 0; i < key.length(); i++)
  {
    char c = key.charAt(i);
    if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
    {
      // escape the separator
      newkey.append('\\');
      newkey.append(c);
    }
    else
    {
      newkey.append(c);
    }
  }
  return newkey.toString();
}

代码示例来源:origin: apache/felix

/**
 * Escape the separators in the key.
 *
 * @param key the key
 * @return the escaped key
 */
private static String escapeKey(String key)
{
  StringBuffer newkey = new StringBuffer();
  for (int i = 0; i < key.length(); i++)
  {
    char c = key.charAt(i);
    if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
    {
      // escape the separator
      newkey.append('\\');
      newkey.append(c);
    }
    else
    {
      newkey.append(c);
    }
  }
  return newkey.toString();
}

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

/**
 * Escape the separators in the key.
 *
 * @param key the key
 * @return the escaped key
 */
private static String escapeKey(String key)
{
  StringBuffer newkey = new StringBuffer();
  for (int i = 0; i < key.length(); i++)
  {
    char c = key.charAt(i);
    if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
    {
      // escape the separator
      newkey.append('\\');
      newkey.append(c);
    }
    else
    {
      newkey.append(c);
    }
  }
  return newkey.toString();
}

代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.apache.felix.utils

/**
 * Escape the separators in the key.
 *
 * @param key the key
 * @return the escaped key
 */
private static String escapeKey(String key)
{
  StringBuffer newkey = new StringBuffer();
  for (int i = 0; i < key.length(); i++)
  {
    char c = key.charAt(i);
    if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
    {
      // escape the separator
      newkey.append('\\');
      newkey.append(c);
    }
    else
    {
      newkey.append(c);
    }
  }
  return newkey.toString();
}

代码示例来源:origin: apache/felix

else if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(WHITE_SPACE, c))

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

else if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(WHITE_SPACE, c))

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

else if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(WHITE_SPACE, c))

代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.apache.felix.utils

else if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(SEPARATORS, c) || contains(WHITE_SPACE, c))
if (contains(WHITE_SPACE, c))
else if (contains(SEPARATORS, c))
if (contains(WHITE_SPACE, c))

代码示例来源:origin: apache/felix

while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))

代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.apache.felix.utils

while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0)))

相关文章