}
@Override
public CachedBlock next() {
final Map.Entry<BlockCacheKey, SingleSizeCache> e = i.next();
final Cacheable cacheable = e.getValue().getBlock(e.getKey(), false, false, false);
return new CachedBlock() {
@Override
public String toString() {
return BlockCacheUtil.toString(this, now);
}
@Override
public BlockPriority getBlockPriority() {
return null;
}
@Override
public BlockType getBlockType() {
return cacheable.getBlockType();
}
@Override
public long getOffset() {
return e.getKey().getOffset();
}
@Override
public long getSize() {
return cacheable == null? 0: cacheable.getSerializedLength();
}
@Override
public long getCachedTime() {
return -1;