/** * Checks if item is old with "default" maxAge. * * @param item the item * @return true, if it is old */ protected boolean isOld( StorageItem item ) { return isOld( getItemMaxAge(), item ); }
/** * Checks if item is old with given maxAge. * * @param maxAge * @param item * @return */ protected boolean isOld( int maxAge, StorageItem item ) { return isOld( maxAge, item, isItemAgingActive() ); }
if ( localItem == null || isOld( localItem ) )