All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.avaje.inject.generator.MetaTopPackage Maven / Gradle / Ivy

package io.avaje.inject.generator;

import java.util.Collection;

final class MetaTopPackage {

  private String topPackage;

  static String of(Collection values) {
    return new MetaTopPackage(values).value();
  }

  private String value() {
    return topPackage;
  }

  private MetaTopPackage(Collection values) {
    for (MetaData metaData : values) {
      if (!metaData.importedComponent()) {
        topPackage = Util.commonParent(topPackage, metaData.topPackage());
      }
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy