Tabnine Logo
SingleSelectCapability.merge
Code IndexAdd Tabnine to your IDE (free)

How to use
merge
method
in
io.spring.initializr.metadata.SingleSelectCapability

Best Java code snippets using io.spring.initializr.metadata.SingleSelectCapability.merge (Showing top 3 results out of 315)

origin: spring-io/initializr

/**
 * Merge this instance with the specified argument.
 * @param other the other instance
 */
public void merge(InitializrMetadata other) {
  this.configuration.merge(other.configuration);
  this.dependencies.merge(other.dependencies);
  this.types.merge(other.types);
  this.bootVersions.merge(other.bootVersions);
  this.packagings.merge(other.packagings);
  this.javaVersions.merge(other.javaVersions);
  this.languages.merge(other.languages);
  this.name.merge(other.name);
  this.description.merge(other.description);
  this.groupId.merge(other.groupId);
  this.artifactId.merge(other.artifactId);
  this.version.merge(other.version);
  this.packageName.merge(other.packageName);
}
origin: spring-io/initializr

@Test
void mergeAddEntry() {
  SingleSelectCapability capability = new SingleSelectCapability("test");
  DefaultMetadataElement foo = DefaultMetadataElement.create("foo", false);
  capability.getContent().add(foo);
  SingleSelectCapability anotherCapability = new SingleSelectCapability("test");
  DefaultMetadataElement bar = DefaultMetadataElement.create("bar", false);
  anotherCapability.getContent().add(bar);
  capability.merge(anotherCapability);
  assertThat(capability.getContent()).hasSize(2);
  assertThat(capability.get("foo")).isEqualTo(foo);
  assertThat(capability.get("bar")).isEqualTo(bar);
}
origin: spring-io/initializr

@Override
public void customize(InitializrMetadata metadata) {
  metadata.getDependencies().merge(this.properties.getDependencies());
  metadata.getTypes().merge(this.properties.getTypes());
  metadata.getBootVersions().merge(this.properties.getBootVersions());
  metadata.getPackagings().merge(this.properties.getPackagings());
  metadata.getJavaVersions().merge(this.properties.getJavaVersions());
  metadata.getLanguages().merge(this.properties.getLanguages());
  this.properties.getGroupId().apply(metadata.getGroupId());
  this.properties.getArtifactId().apply(metadata.getArtifactId());
  this.properties.getVersion().apply(metadata.getVersion());
  this.properties.getName().apply(metadata.getName());
  this.properties.getDescription().apply(metadata.getDescription());
  this.properties.getPackageName().apply(metadata.getPackageName());
}
io.spring.initializr.metadataSingleSelectCapabilitymerge

Popular methods of SingleSelectCapability

  • getContent
  • getDefault
    Return the default element of this capability.
  • get
  • <init>
  • getId
  • getType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now