Example #1
1
  /**
   * Creates a typed action with given labels over a given resource.
   *
   * @param labels the labels
   * @param type the type
   * @param resource the resource identifier
   */
  private DefaultAction(List<String> parts, ResourceType type, String resource) {

    valid("labels", parts);
    notNull("type", type);
    valid("resource identifier", resource);

    this.labels.addAll(parts);
    this.type = type;
    this.resource = resource;
  }