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

org.immutables.fixture.builder.ToBuilderMethod Maven / Gradle / Ivy

There is a newer version: 2.10.1
Show newest version
package org.immutables.fixture.builder;

import org.immutables.value.Value;

public interface ToBuilderMethod {
  @Value.Immutable
  @Value.Style(toBuilder = "toBuilder")
  interface ToBuilderClassic {
    int a();
    String b();
  }

  @Value.Immutable
  @Value.Style(toBuilder = "toBuilder", overshadowImplementation = true)
  interface ToBuilderSandwich {
    int a();
    String b();
    // abstract to builder is not an accessor if toBuilder enabled
    Builder toBuilder();

    class Builder extends ImmutableToBuilderSandwich.Builder {}
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy