/** Set new keys for this children object. Setting of keys * does not necessarily lead to the creation of nodes. It happens only * when the list has already been initialized. * * @param keysSet the keys for the nodes (collection of any objects) */ protected final void setKeys (Collection keysSet) { final ArrayList l = new ArrayList (keysSet.size () + 1); if (before) { l.add (getNodesEntry ()); } KE updator = new KE (); updator.updateList (keysSet, l); if (!before) { l.add (getNodesEntry ()); } applyKeys (l); }
/** Set new keys for this children object. Setting of keys * does not necessarily lead to the creation of nodes. It happens only * when the list has already been initialized. * * @param keysSet the keys for the nodes (collection of any objects) */ protected final void setKeys (Collection keysSet) { final ArrayList l = new ArrayList (keysSet.size () + 1); if (before) { l.add (getNodesEntry ()); } KE updator = new KE (); updator.updateList (keysSet, l); if (!before) { l.add (getNodesEntry ()); } applyKeys (l); }
/** Set keys for this list. * * @param keys the keys for the nodes * @see #setKeys(Collection) */ protected final void setKeys (final Object[] keys) { final ArrayList l = new ArrayList (keys.length + 1); KE updator = new KE (); if (before) { l.add (getNodesEntry ()); } updator.updateList (keys, l); if (!before) { l.add (getNodesEntry ()); } applyKeys (l); }
/** Set keys for this list. * * @param keys the keys for the nodes * @see #setKeys(Collection) */ protected final void setKeys (final Object[] keys) { final ArrayList l = new ArrayList (keys.length + 1); KE updator = new KE (); if (before) { l.add (getNodesEntry ()); } updator.updateList (keys, l); if (!before) { l.add (getNodesEntry ()); } applyKeys (l); }