com.android.dx.rop.annotation.Annotations.addAll()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中com.android.dx.rop.annotation.Annotations.addAll()方法的一些代码示例,展示了Annotations.addAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotations.addAll()方法的具体详情如下:
包路径:com.android.dx.rop.annotation.Annotations
类名称:Annotations
方法名:addAll

Annotations.addAll介绍

[英]Adds all of the elements of the given instance to this one. The instances must not have any duplicate types.
[中]将给定实例的所有元素添加到此实例。实例不能有任何重复的类型。

代码示例

代码示例来源:origin: nikita36078/J2ME-Loader

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.android/dx

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.android.tools.build/builder

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.google.dexmaker/dexmaker-dx

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 *
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * Constructs an immutable instance which is the combination of the
 * two given instances. The two instances must contain disjoint sets
 * of types.
 * 
 * @param a1 {@code non-null;} an instance
 * @param a2 {@code non-null;} the other instance
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations a1, Annotations a2) {
  Annotations result = new Annotations();
  result.addAll(a1);
  result.addAll(a2);
  result.setImmutable();
  return result;
}

代码示例来源:origin: nikita36078/J2ME-Loader

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.google.dexmaker/dexmaker-dx

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 * 
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.android.tools.build/builder

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: com.android/dx

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

代码示例来源:origin: gdpancheng/LoonAndroid3

/**
 * Constructs an immutable instance which is the combination of the
 * given instance with the given additional annotation. The latter's
 * type must not already appear in the former.
 *
 * @param annotations {@code non-null;} the instance to augment
 * @param annotation {@code non-null;} the additional annotation
 * @return {@code non-null;} the combination
 * @throws IllegalArgumentException thrown if there is a duplicate type
 */
public static Annotations combine(Annotations annotations,
    Annotation annotation) {
  Annotations result = new Annotations();
  result.addAll(annotations);
  result.add(annotation);
  result.setImmutable();
  return result;
}

相关文章