/** * Add the given components, in order, to the identifier. Duplicate instances are not added--only * one instance of a component will exist in the identifier. * * @param components */ public void add(Object... components) { if (components == null) return; for (Object component : components) { add(component); } }
public Identifier(Identifier that) { this(); if (that == null || that.isEmpty()) return; add(that.components.toArray()); }
/** * Create an identifier with the given components. Duplicate instances are not added--only one * instance of a component will exist in the identifier. * * @param components */ public Identifier(Object... components) { this(); add(components); }