protected ExcludedRefs defaultExcludedRefs() { return ExcludedRefs.builder().build(); }
@Override public ExcludedRefs build() { return new ExcludedRefs(this); } }
ExcludedRefs(BuilderWithParams builder) { this.fieldNameByClassName = unmodifiableRefStringMap(builder.fieldNameByClassName); this.staticFieldNameByClassName = unmodifiableRefStringMap(builder.staticFieldNameByClassName); this.threadNames = unmodifiableRefMap(builder.threadNames); this.classNames = unmodifiableRefMap(builder.classNames); }
private Map<String, Map<String, Exclusion>> unmodifiableRefStringMap( Map<String, Map<String, ParamsBuilder>> mapmap) { LinkedHashMap<String, Map<String, Exclusion>> fieldNameByClassName = new LinkedHashMap<>(); for (Map.Entry<String, Map<String, ParamsBuilder>> entry : mapmap.entrySet()) { fieldNameByClassName.put(entry.getKey(), unmodifiableRefMap(entry.getValue())); } return unmodifiableMap(fieldNameByClassName); }
private Map<String, Map<String, Exclusion>> unmodifiableRefStringMap( Map<String, Map<String, ParamsBuilder>> mapmap) { LinkedHashMap<String, Map<String, Exclusion>> fieldNameByClassName = new LinkedHashMap<>(); for (Map.Entry<String, Map<String, ParamsBuilder>> entry : mapmap.entrySet()) { fieldNameByClassName.put(entry.getKey(), unmodifiableRefMap(entry.getValue())); } return unmodifiableMap(fieldNameByClassName); }
ExcludedRefs(BuilderWithParams builder) { this.fieldNameByClassName = unmodifiableRefStringMap(builder.fieldNameByClassName); this.staticFieldNameByClassName = unmodifiableRefStringMap(builder.staticFieldNameByClassName); this.threadNames = unmodifiableRefMap(builder.threadNames); this.classNames = unmodifiableRefMap(builder.classNames); }
public static @NonNull ExcludedRefs.Builder createBuilder(EnumSet<AndroidExcludedRefs> refs) { ExcludedRefs.Builder excluded = ExcludedRefs.builder(); for (AndroidExcludedRefs ref : refs) { if (ref.applies) { ref.add(excluded); ((ExcludedRefs.BuilderWithParams) excluded).named(ref.name()); } } return excluded; }
@Override public ExcludedRefs build() { return new ExcludedRefs(this); } }
protected ExcludedRefs defaultExcludedRefs() { return ExcludedRefs.builder().build(); }