Code example for Map.Entry

Methods: getKey, getValue

0
 
    @Override 
    public boolean process(final Entry<BytesKey, OpItem> eldest) {
        try { 
            // ³¢ÊÔ´æÈë´ÅÅÌ 
            return this.diskMap.put(eldest.getKey(), eldest.getValue());
        } 
        catch (final IOException e) {
            e.printStackTrace();
            log.error("дÈë´ÅÅÌ»º´æʧ°Ü", e);
        } 
        return false; 
    } 
 
}