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

org.immutables.fixture.style.TransientDerivedFields Maven / Gradle / Ivy

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

import java.io.Serializable;
import org.immutables.serial.Serial;
import org.immutables.value.Value;

@Value.Style // resetting package's style to empty
interface TransientDerivedFields {
  interface Def {
    @Value.Derived
    default int def() {
      return 1;
    }
  }

  @Value.Immutable
  interface Tr extends Def {}

  @Value.Style(transientDerivedFields = false)
  @Value.Immutable
  interface NonTr extends Def {}

  @Value.Immutable
  interface Ser extends Def, Serializable {}

  @Value.Immutable
  @Serial.Structural
  interface StrSer extends Def, Serializable {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy