jadex.commons.collection.LRU.size()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(180)

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

LRU.size介绍

暂无

代码示例

代码示例来源:origin: org.activecomponents.jadex/jadex-commons

/**
   *  Get the size.
   *  @return The size.
   */
  public int size()
  {
    return lru.size();
  }
}

代码示例来源:origin: org.activecomponents.jadex/jadex-commons

/**
   *  Remove the eldest entry.
   *  @param eldest The eldest entry.
   *  @return True if need to be removed.
   */
  public boolean removeEldestEntry(Map.Entry<K, V> eldest)
  {
//        if(size() > max)
//            System.out.println("removing: "+eldest);
    if(cleaner!=null && size() > max)
      cleaner.cleanupEldestEntry(eldest);
    return size() > max;
  }
}

代码示例来源:origin: org.activecomponents.jadex/jadex-commons

ec.writeVarInt(((LRU) object).size());

代码示例来源:origin: org.activecomponents.jadex/jadex-platform

SendManager[] tmp = (SendManager[])managers.values().toArray(new SendManager[managers.size()]);
final SendManager[] sms = (SendManager[])SUtil.arrayToSet(tmp).toArray(new SendManager[0]);

代码示例来源:origin: net.sourceforge.jadex/jadex-platform

SendManager[] tmp = (SendManager[])managers.values().toArray(new SendManager[managers.size()]);
final SendManager[] sms = (SendManager[])SUtil.arrayToSet(tmp).toArray(new SendManager[0]);

代码示例来源:origin: net.sourceforge.jadex/jadex-platform-base

SendManager[] tmp = (SendManager[])managers.values().toArray(new SendManager[managers.size()]);
final SendManager[] sms = (SendManager[])SUtil.arrayToSet(tmp).toArray(new SendManager[0]);

相关文章