Java Code Examples for org.immutables.gson.Gson

The following examples show how to use org.immutables.gson.Gson. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: immutables   Source File: Polymorphics.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.ExpectedSubtypes({B.class, C.class, D.class})
List<A> list();
 
Example 2
Source Project: immutables   Source File: Polymorphics.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.ExpectedSubtypes({})
Map<String, A> autodetect();
 
Example 3
Source Project: immutables   Source File: Unsimple.java    License: Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Gson.Named("_nullable_")
@Nullable
Integer nlb();
 
Example 4
Source Project: immutables   Source File: OtherAttributes.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.Other
JsonObject rest();
 
Example 5
Source Project: immutables   Source File: Optionals.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.ExpectedSubtypes({B.class, C.class, D.class})
Optional<A> aPoly();
 
Example 6
Source Project: immutables   Source File: Simple.java    License: Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Gson.Named("_nullable_")
@Nullable
Integer nlb();
 
Example 7
Source Project: immutables   Source File: SillyPolyHost2.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.ExpectedSubtypes({
    SillySub2.class,
    SillySub3.class
})
public abstract SillyAbstract s();
 
Example 8
Source Project: immutables   Source File: SillyPolyHost2.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.ExpectedSubtypes({
    SillySub2.class,
    SillySub3.class
})
public abstract Optional<SillyAbstract> o();
 
Example 9
Source Project: immutables   Source File: JsonIgnore.java    License: Apache License 2.0 4 votes vote down vote up
@Gson.Ignore
List<Integer> values();