java.util.AbstractMap.size()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(126)

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

AbstractMap.size介绍

[英]This implementation returns its entry set's size.
[中]此实现返回其条目集的大小。

代码示例

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

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

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

@Override public int size() {
  return AbstractMap.this.size();
}

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

@Override public int size() {
  return AbstractMap.this.size();
}

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

if (size() != map.size()) {
  return false;

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

StringBuilder buffer = new StringBuilder(size() * 28);
buffer.append('{');
Iterator<Map.Entry<K, V>> it = entrySet().iterator();

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

/**
 * Returns the number of key-value mappings in this map.
 *
 * @return the number of key-value mappings in this map.
 */
@Override
public int size() {
  return super.size();
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * {@inheritDoc}
 *
 * <p>This implementation returns <tt>size() == 0</tt>.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * {@inheritDoc}
 *
 * <p>This implementation returns <tt>size() == 0</tt>.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: MobiVM/robovm

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: ibinti/bugvm

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

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

/**
 * Returns the number of key-value mappings in this map.
 *
 * @return the number of key-value mappings in this map.
 */
@Override
public int size() {
return super.size();
}

代码示例来源:origin: com.jtransc/jtransc-rt

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: MobiVM/robovm

@Override public int size() {
  return AbstractMap.this.size();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * {@inheritDoc}
 *
 * <p>This implementation compares {@code size()} to 0.
 */
public boolean isEmpty() {
  return size() == 0;
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

/**
 * {@inheritDoc}
 *
 * <p>This implementation returns <tt>size() == 0</tt>.
 */
public boolean isEmpty() {
  return size() == 0;
}

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

/**
 * Returns the number of key-value mappings in this map.
 *
 * @return the number of key-value mappings in this map.
 */
public int size() {
return super.size();
}

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

public int size() {
  if (mPrefix == null) {
    return mMappings.size();
  }
  else {
    return super.size();
  }
}

相关文章