All Projects → cynnyx → Auto Value Map

cynnyx / Auto Value Map

Licence: apache-2.0
AutoValue Extension to add Map generation support

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Auto Value Map

Pojobuilder
A Java Code Generator for Pojo Builders
Stars: ✭ 326 (+482.14%)
Mutual labels:  annotation-processor
Derive4j
Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.
Stars: ✭ 511 (+812.5%)
Mutual labels:  annotation-processor
Metasra Pipeline
MetaSRA: normalized sample-specific metadata for the Sequence Read Archive
Stars: ✭ 33 (-41.07%)
Mutual labels:  annotation-processor
Parceler
📦 Android Parcelables made easy through code generation.
Stars: ✭ 3,589 (+6308.93%)
Mutual labels:  annotation-processor
Onactivityresult
OnActivityResult annotation compiler for Android
Stars: ✭ 470 (+739.29%)
Mutual labels:  annotation-processor
Android State
A utility library for Android to save objects in a Bundle without any boilerplate.
Stars: ✭ 857 (+1430.36%)
Mutual labels:  annotation-processor
Vscode Todo Highlight
a vscode extension to highlighting todos, fixmes, and any annotations...
Stars: ✭ 305 (+444.64%)
Mutual labels:  annotation-processor
Jenny
JNI glue code generator
Stars: ✭ 53 (-5.36%)
Mutual labels:  annotation-processor
Paperparcel
Auto-generate the fastest possible Parcelable implementations for Java and Kotlin
Stars: ✭ 494 (+782.14%)
Mutual labels:  annotation-processor
Hamcrest Pojo Matcher Generator
Autogenerated java hamcrest matchers for pojo with help of AnnotationProcessor
Stars: ✭ 31 (-44.64%)
Mutual labels:  annotation-processor
Android Api Securekeys
Store data in a simple and secure way
Stars: ✭ 372 (+564.29%)
Mutual labels:  annotation-processor
Deeplinkdispatch
A simple, annotation-based library for making deep link handling better on Android
Stars: ✭ 4,108 (+7235.71%)
Mutual labels:  annotation-processor
Showkase
🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
Stars: ✭ 873 (+1458.93%)
Mutual labels:  annotation-processor
Preferenceroom
🚚 Android processing library for managing SharedPreferences persistence efficiently and structurally.
Stars: ✭ 341 (+508.93%)
Mutual labels:  annotation-processor
Mezzanine
An annotation processor that reads files at compile time
Stars: ✭ 45 (-19.64%)
Mutual labels:  annotation-processor
Jackdaw
Java Annotation Processor which allows to simplify development
Stars: ✭ 306 (+446.43%)
Mutual labels:  annotation-processor
Kotshi
An annotation processor that generates Moshi adapters from immutable Kotlin data classes.
Stars: ✭ 656 (+1071.43%)
Mutual labels:  annotation-processor
Gsonpath
A Java annotation processor library which generates gson type adapters using basic JsonPath style annotations
Stars: ✭ 54 (-3.57%)
Mutual labels:  annotation-processor
Zerocell
Simple, efficient Excel to POJO library for Java
Stars: ✭ 53 (-5.36%)
Mutual labels:  annotation-processor
Koloboke
Java Collections till the last breadcrumb of memory and performance
Stars: ✭ 909 (+1523.21%)
Mutual labels:  annotation-processor

auto-value-map

AutoValue Extension to add Map generation support. Generates a Map<String,Object> where the keys are the field names and the values the related field values.

Usage

Include the AutoValue: Map Extension in your project and add public abstract Map<String,Object> toMap() to any of your @AutoValue annotated classes.

@AutoValue public abstract class Foo {
  public abstract String bar();
  public abstract Integer bar2();
  public abstract Map<String,Object> toMap();
}

Now build your project and use the generated toMap() method in Foo.

Download

Add a Gradle dependency:

apt 'com.github.cynnyx:auto-value-map:1.0'

(Using the android-apt plugin)

License

Copyright 2016 Cynny

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].