forked from immutables/immutables
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Simkin
committed
Oct 20, 2021
1 parent
6a75a95
commit 48f1497
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
value-fixture/src/org/immutables/fixture/jackson/i1339/AbstractCar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.immutables.fixture.jackson.i1339; | ||
|
||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import org.immutables.value.Value; | ||
|
||
import java.util.List; | ||
|
||
@JsonSerialize | ||
@Value.Immutable | ||
@JsonDeserialize(as = ImmutableCar.class) | ||
public abstract class AbstractCar implements Car { | ||
@Override | ||
@JsonDeserialize(as = ImmutableTire.class) | ||
public abstract List<Tire> getTires(); | ||
} |
7 changes: 7 additions & 0 deletions
7
value-fixture/src/org/immutables/fixture/jackson/i1339/Car.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.immutables.fixture.jackson.i1339; | ||
|
||
import java.util.List; | ||
|
||
public interface Car { | ||
List<Tire> getTires(); | ||
} |
8 changes: 8 additions & 0 deletions
8
value-fixture/src/org/immutables/fixture/jackson/i1339/Tire.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.immutables.fixture.jackson.i1339; | ||
|
||
import org.immutables.value.Value; | ||
|
||
@Value.Immutable | ||
public interface Tire { | ||
String getKind(); | ||
} |