org.apache.openjpa.lib.conf.Value.matches()方法的使用及代码示例

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

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

Value.matches介绍

[英]Affirms if the given key matches the property (or any of its equivalent).
[中]确认给定的密钥是否与属性(或其任何等效项)匹配。

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-all

public void valueChanged(Value val) {
  if (val != null && val.matches("DataCacheTimeout")) {
    _cacheTimeout = Integer.MIN_VALUE;
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

public void valueChanged(Value val) {
  if (val != null && val.matches("DataCacheTimeout")) {
    _cacheTimeout = Integer.MIN_VALUE;
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

public void valueChanged(Value val) {
  if (val != null && val.matches("DataCacheTimeout")) {
    _cacheTimeout = Integer.MIN_VALUE;
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-kernel

public void valueChanged(Value val) {
  if (val != null && val.matches("DataCacheTimeout")) {
    _cacheTimeout = Integer.MIN_VALUE;
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Gets the registered Value for the given propertyName.
 * 
 * @param property can be either fully-qualified name or the simple name
 * with which the value has been registered. A value may have multiple
 * equivalent names and this method searches with all equivalent names.
 */
public Value getValue(String property) {
  if (property == null)
    return null;
  // search backwards so that custom values added after construction
  // are found quickly, since this will be the std way of accessing them
  for (int i = _vals.size()-1; i >= 0; i--) { 
    if (_vals.get(i).matches(property))
      return _vals.get(i);
  }
  return null;
}

代码示例来源:origin: org.apache.openjpa/openjpa-lib

/**
 * Gets the registered Value for the given propertyName.
 * 
 * @param property can be either fully-qualified name or the simple name
 * with which the value has been registered. A value may have multiple
 * equivalent names and this method searches with all equivalent names.
 */
public Value getValue(String property) {
  if (property == null)
    return null;
  // search backwards so that custom values added after construction
  // are found quickly, since this will be the std way of accessing them
  for (int i = _vals.size()-1; i >= 0; i--) { 
    if (_vals.get(i).matches(property))
      return _vals.get(i);
  }
  return null;
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Gets the registered Value for the given propertyName.
 * 
 * @param propertyName can be either fully-qualified name or the simple name
 * with which the value has been registered. A value may have multiple
 * equivalent names and this method searches with all equivalent names.
 */
public Value getValue(String property) {
  if (property == null)
    return null;
  // search backwards so that custom values added after construction
  // are found quickly, since this will be the std way of accessing them
  for (int i = _vals.size()-1; i >= 0; i--) { 
    if (_vals.get(i).matches(property))
      return _vals.get(i);
  }
  return null;
}

相关文章