@Override public boolean includeNode( CachedNode node, NodeCache cache ) { if (nodeTypes.isShareable(node.getPrimaryType(cache), node.getMixinTypes(cache))) { NodeKey key = node.getKey(); if (shareableNodeKeys.contains(key)) { return false; } // we're seeing the original shareable node, so we need to process it shareableNodeKeys.add(key); return true; } return true; }
@Override public boolean includeNode( CachedNode node, NodeCache cache ) { if (nodeTypes.isShareable(node.getPrimaryType(cache), node.getMixinTypes(cache))) { NodeKey key = node.getKey(); if (shareableNodeKeys.contains(key)) { return false; } // we're seeing the original shareable node, so we need to process it shareableNodeKeys.add(key); return true; } return true; }