public void intern(@Nonnull Collection<? extends CharSequence> types) { if (types.size() > 0) { Key<? extends Collection<? extends CharSequence>> key = new Key<Collection<? extends CharSequence>>(types); Integer prev = internedItems.put(key, 0); if (prev == null) { for (CharSequence type: types) { typePool.intern(type); } } } }
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<List<String>>(ImmutableList.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }
public void intern(@Nonnull Collection<? extends CharSequence> types) { if (types.size() > 0) { Key<? extends Collection<? extends CharSequence>> key = new Key<Collection<? extends CharSequence>>(types); Integer prev = internedItems.put(key, 0); if (prev == null) { for (CharSequence type: types) { dexPool.typeSection.intern(type); } } } }
@Nullable @Override public TypeListPool.Key<List<? extends CharSequence>> getParameters(@Nonnull Key key) { return new TypeListPool.Key<List<? extends CharSequence>>(key.getParameters()); }
public void intern(@Nonnull Collection<? extends CharSequence> types) { if (types.size() > 0) { Key<? extends Collection<? extends CharSequence>> key = new Key<Collection<? extends CharSequence>>(types); Integer prev = internedItems.put(key, 0); if (prev == null) { for (CharSequence type: types) { dexPool.typeSection.intern(type); } } } }
@Nullable @Override public TypeListPool.Key<List<? extends CharSequence>> getParameters( @Nonnull MethodProtoReference methodProto) { return new TypeListPool.Key<List<? extends CharSequence>>(methodProto.getParameterTypes()); } }
@Nullable @Override public TypeListPool.Key<List<? extends CharSequence>> getParameters( @Nonnull MethodProtoReference methodProto) { return new TypeListPool.Key<List<? extends CharSequence>>(methodProto.getParameterTypes()); } }
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<List<String>>(ImmutableList.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<SortedSet<String>>(ImmutableSortedSet.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }