/** * {@inheritDoc} */ public void put(EffectiveNodeType ent) { // we define the weight as the total number of included node types // (through aggregation and inheritance) int weight = ent.getMergedNodeTypes().length; // the effective node type is identified by the list of merged // (i.e. aggregated) node types WeightedKey k = new WeightedKey(ent.getMergedNodeTypes(), weight); put(k, ent); }
/** * {@inheritDoc} */ public void put(EffectiveNodeType ent) { // we define the weight as the total number of included node types // (through aggregation and inheritance) int weight = ent.getMergedNodeTypes().length; // the effective node type is identified by the list of merged // (i.e. aggregated) node types WeightedKey k = new WeightedKey(ent.getMergedNodeTypes(), weight); put(k, ent); }