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

io.avaje.jsonb.generator.TopPackage Maven / Gradle / Ivy

package io.avaje.jsonb.generator;

import java.util.Collection;

final class TopPackage {

  private String topPackage;

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

  private String value() {
    return topPackage;
  }

  private TopPackage(Collection values) {
    for (String pkg : values) {
      topPackage = Util.commonParent(topPackage, pkg);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy