本文整理了Java中org.jvnet.hk2.component.MultiMap.size()
方法的一些代码示例,展示了MultiMap.size()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiMap.size()
方法的具体详情如下:
包路径:org.jvnet.hk2.component.MultiMap
类名称:MultiMap
方法名:size
[英]Returns the size of the map. This returns the numbers of keys in the map, not the number of values
[中]返回地图的大小。这将返回映射中的键数,而不是值数
代码示例来源:origin: javaee/glassfish
/**
* Calculates all @Configured interfaces subclassing the passed interface type.
*
* @param intf a @Configured interface
* @return List of all @Configured subclasses
* @throws ClassNotFoundException
*/
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
if (implementorsOf.size()==0) {
initXRef();
}
return implementorsOf.getOne(intf);
}
代码示例来源:origin: com.sun.enterprise/auto-depends
@Override
public boolean equals(Object another) {
if (!MultiMap.class.isInstance(another)) {
return false;
}
@SuppressWarnings("rawtypes")
MultiMap other = MultiMap.class.cast(another);
if (size() != other.size()) {
return false;
}
for (Entry<K, List<V>> entry : store.entrySet()) {
@SuppressWarnings("unchecked")
List<V> vColl = other.get(entry.getKey());
if (!entry.getValue().equals(vColl)) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.hk2/auto-depends
@Override
public boolean equals(Object another) {
if (!MultiMap.class.isInstance(another)) {
return false;
}
@SuppressWarnings("rawtypes")
MultiMap other = MultiMap.class.cast(another);
if (size() != other.size()) {
return false;
}
for (Entry<K, List<V>> entry : store.entrySet()) {
@SuppressWarnings("unchecked")
List<V> vColl = other.get(entry.getKey());
if (!entry.getValue().equals(vColl)) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.hk2/auto-depends
boolean matches(org.glassfish.hk2.MultiMap<K, V> other) {
if (size() > other.size()) {
return false;
}
for (Entry<K, List<V>> entry : store.entrySet()) {
List<V> vColl = other.get(entry.getKey());
if (!entry.getValue().equals(vColl)) {
return false;
}
}
return true;
}
代码示例来源:origin: com.sun.enterprise/auto-depends
boolean matches(org.glassfish.hk2.MultiMap<K, V> other) {
if (size() > other.size()) {
return false;
}
for (Entry<K, List<V>> entry : store.entrySet()) {
List<V> vColl = other.get(entry.getKey());
if (!entry.getValue().equals(vColl)) {
return false;
}
}
return true;
}
代码示例来源:origin: org.glassfish.hk2/config
/**
* Calculates all @Configured interfaces subclassing the passed interface type.
*
* @param intf a @Configured interface
* @return List of all @Configured subclasses
* @throws ClassNotFoundException
*/
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
if (implementorsOf.size()==0) {
initXRef();
}
return implementorsOf.getOne(intf);
}
代码示例来源:origin: com.sun.enterprise/auto-depends
@Override
public boolean matches(Inhabitant<?> i) {
MultiMap<String, String> map = i.metadata();
if (null == map || map.size() == 0) {
return true;
}
return matcher.matches(map);
}
代码示例来源:origin: org.glassfish.hk2/hk2-config
/**
* Calculates all @Configured interfaces subclassing the passed interface type.
*
* @param intf a @Configured interface
* @return List of all @Configured subclasses
* @throws ClassNotFoundException
*/
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
if (implementorsOf.size()==0) {
initXRef();
}
return implementorsOf.getOne(intf);
}
代码示例来源:origin: org.glassfish.hk2/auto-depends
@Override
public boolean matches(Inhabitant<?> i) {
MultiMap<String, String> map = i.metadata();
if (null == map || map.size() == 0) {
return true;
}
return matcher.matches(map);
}
代码示例来源:origin: com.sun.enterprise/config
/**
* Calculates all @Configured interfaces subclassing the passed interface type.
*
* @param intf a @Configured interface
* @return List of all @Configured subclasses
* @throws ClassNotFoundException
*/
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
if (implementorsOf.size()==0) {
initXRef();
}
return implementorsOf.getOne(intf);
}
代码示例来源:origin: eclipse-ee4j/glassfish
/**
* Calculates all @Configured interfaces subclassing the passed interface type.
*
* @param intf a @Configured interface
* @return List of all @Configured subclasses
* @throws ClassNotFoundException
*/
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
if (implementorsOf.size()==0) {
initXRef();
}
return implementorsOf.getOne(intf);
}
代码示例来源:origin: org.glassfish.main.admin/admin-cli
@Override
protected boolean useSse() throws CommandException {
if (env.getBooleanOption("NOSSE")) {
return false;
}
return programOpts.isDetachedCommand() || listeners.size() > 0 || super.useSse();
}
内容来源于网络,如有侵权,请联系作者删除!