Refine search
@JsonPropertyOrder({"lat", "lon"}) @JsonDeserialize(as = ImmutableGeoPoint2.class) @JsonSerialize(as = ImmutableGeoPoint2.class) @Value.Immutable public abstract class GeoPoint2 { public abstract double lon(); public abstract double lat(); }
/** * Static (not live-reloaded) portions of TimeLock's configuration. */ @JsonDeserialize(as = ImmutableTimeLockInstallConfiguration.class) @JsonSerialize(as = ImmutableTimeLockInstallConfiguration.class) @Value.Immutable @JsonIgnoreProperties(value = "asyncLock") public interface TimeLockInstallConfiguration { PaxosInstallConfiguration paxos(); ClusterConfiguration cluster(); @Value.Default default TsBoundPersisterConfiguration timestampBoundPersistence() { return ImmutablePaxosTsBoundPersisterConfiguration.builder().build(); } }
@Value.Immutable @JsonDeserialize(as = ImmutableAnyGetterSetter.class) public interface AnyGetterSetter { @JsonAnyGetter public Map<String, Object> getAny(); }
@Value.Immutable @JsonDeserialize(as = ImmutableMinimumAnnotationsMapped.class) @JsonIgnoreProperties(ignoreUnknown = true) public interface MinimumAnnotationsMapped { @JsonProperty("A") String a(); @JsonProperty("B") List<Integer> b(); }
@JsonSerialize @Immutable public interface AbstractSomething extends IHaveGetContentAndWithId<MySomethingContent, Something> { // this override is not needed with 2.2, hooray! \o/ // @Override // MySomethingContent getContent(); // without this override it generates the withId method that returns T instead of Something for // the Json class ;( // @Override // Something withId(int id); }
@Value.Immutable(singleton = true) interface SafeInitSingl { @Value.Default default int a() { return 1; } @Value.Derived default int b() { return a() + 1; } }
@Value.Immutable(singleton = true) @Style(privateNoargConstructor = true) interface PrivateNoargConstructorIsOverriddenBySingleton { @Value.Default default int test() { return 1; } @SuppressWarnings("CheckReturnValue") default void use() { ImmutablePrivateNoargConstructorIsOverriddenBySingleton.of(); } }
@Value.Immutable static abstract class AbstractToString { @Override public abstract String toString(); }
@Value.Immutable(intern = true) static abstract class InternCustomHashCode { abstract int a(); @Override public int hashCode() { return 0; } @Override public boolean equals(Object obj) { return obj instanceof InternCustomHashCode; } }
@Value.Immutable public interface CheckForNullAttributes { @CheckForNull String a(); @CheckForNull Set<String> b(); }
/** * For JDK only string generation strategy is different: concatenation is used. */ @Value.Immutable @Value.Style(redactedMask = "$$$$", jdkOnly = true) public interface RedactedMaskJdkOnly { @Value.Redacted int code(); }
@Value.Immutable public interface SampleValue { int a(); List<Integer> c(); OptionalInt oi(); Optional<String> os(); }
@Gson.TypeAdapters @Value.Immutable public interface Unsimple { Optional<String> optionalString(); @SuppressWarnings("deprecation") @Gson.Named("_nullable_") @Nullable Integer nlb(); List<Character> characterList(); }
@Immutable public interface NewValueNamedWithCollission { String getNewValue(); String getOldValue(); default boolean isDifferent() { return !getNewValue().equals(getOldValue()); } }
@Value.Immutable public interface ByBuilder { int value(); } }
@Value.Immutable(builder = false) interface C extends A { @Value.Parameter String v2(); }
@Value.Immutable public interface IfStatement extends TemplatePart, Synthetic { ConditionalBlock then(); List<ConditionalBlock> otherwiseIf(); Optional<Block> otherwise(); }
@Value.Immutable public interface TransformGenerator extends GeneratorValueDeclaration { Expression transform(); ValueDeclaration varDeclaration(); Optional<Expression> condition(); }
@Value.Immutable interface Nested { int a(); @Value.Immutable static class Deeper { @Value.Immutable interface Deepest {} } } }
@Value.Immutable(builder = false) public abstract class AuxDefaultOnForcedSingleton { @Value.Auxiliary @Value.Default public int aux() { return 42; } }