org.immutables.fixture.builder.ToBuilderMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of value-fixture Show documentation
Show all versions of value-fixture Show documentation
Module that contains all tests for the code generation capability
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