pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/dampcake/gson-immutable

s" /> GitHub - dampcake/gson-immutable: Immutable TypeAdapters for Gson · GitHub
Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

dampcake/gson-immutable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This project is no longer maintained.

gson-immutable

Build Status Coverage Status Maven GitHub license

Gson TypeAdapters for Guava Immutable Objects.

Requires JDK 1.6 or higher (Guava)

Javadoc

http://dampcake.github.io/gson-immutable

Usage

Maven

<dependency>
    <groupId>com.dampcake</groupId>
    <artifactId>gson-immutable</artifactId>
    <version>1.2</version>
</dependency>

Gradle

compile 'com.dampcake:gson-immutable:1.2'

Examples

Register Guava Immutable interfaces:

final Gson gson = new GsonBuilder().registerTypeAdapterFactory(ImmutableAdapterFactory.forGuava()).create();

Register Java interfaces:

final Gson gson = new GsonBuilder().registerTypeAdapterFactory(ImmutableAdapterFactory.forJava()).create();

Supported Types

Interface Immutable Version Supported?
Collection ImmutableCollection ✔️
List ImmutableList ✔️
Set ImmutableSet ✔️
SortedSet ImmutableSortedSet ✔️
NavigableSet ImmutableSortedSet ✔️
Map ImmutableMap ✔️
SortedMap ImmutableSortedMap ✔️

About

Immutable TypeAdapters for Gson

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy