org.geotools.factory.Hints.stripNonKeys()方法的使用及代码示例

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

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

Hints.stripNonKeys介绍

[英]Returns a map with the same hints than the specified one, minus every (key,value) pairs where the key is not an instance of RenderingHints.Key. If the given map contains only valid keys, then it is returned unchanged.
[中]返回一个具有与指定提示相同的提示的映射,减去每个(键,值)对,其中键不是RenderingHints的实例。钥匙如果给定的映射只包含有效的键,那么它将原封不动地返回。

代码示例

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Constructs a new object with keys and values initialized from the
 * specified hints (which may be null).
 *
 * @param hints A map of key/value pairs to initialize the hints, or
 *              {@code null} if the object should be empty.
 *
 * @since 2.5
 */
public Hints(final RenderingHints hints) {
  super(stripNonKeys(hints));
}

代码示例来源:origin: org.geotools/gt-metadata

/**
 * Constructs a new object with keys and values initialized from the
 * specified map (which may be null).
 *
 * @param hints A map of key/value pairs to initialize the hints, or
 *              {@code null} if the object should be empty.
 */
public Hints(final Map<? extends RenderingHints.Key, ?> hints) {
  super(stripNonKeys(hints));
}

代码示例来源:origin: org.geotools/gt2-metadata

/**
 * Constructs a new object with keys and values initialized from the
 * specified map (which may be null).
 *
 * @param hints A map of key/value pairs to initialize the hints, or
 *              {@code null} if the object should be empty.
 */
public Hints(final Map hints) {
  super(stripNonKeys(hints));
}

代码示例来源:origin: org.geotools/gt2-metadata

implementationHints = Hints.stripNonKeys(factory.getImplementationHints());
} finally {
  if (!testingHints.remove(factory)) {

代码示例来源:origin: org.geotools/gt-metadata

implementationHints = Hints.stripNonKeys(factory.getImplementationHints());
} finally {
  testingHints.removeAndCheck(factory);

相关文章