Beispiel #1
0
  /**
   * 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);
    }
  }
Beispiel #2
0
  public Identifier(Identifier that) {
    this();

    if (that == null || that.isEmpty()) return;

    add(that.components.toArray());
  }
Beispiel #3
0
 /**
  * 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);
 }