All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gsonfire.postprocessors.MappedMethod Maven / Gradle / Ivy

Go to download

A java library that adds some very useful features to Gson, like Date serializing to unix timestamp or RFC3339, method (getter) serialization, pre and post processors and many more. Check out the documentation to learn how to use it!

There is a newer version: 1.9.0
Show newest version
package io.gsonfire.postprocessors;

import io.gsonfire.annotations.ExposeMethodResult;

import java.lang.reflect.Method;

/**
 * Created by julio on 5/25/15.
 */
public class MappedMethod {

    private final  Method method;
    private final String serializedName;
    private final ExposeMethodResult.ConflictResolutionStrategy conflictResolutionStrategy;

    public Method getMethod() {
        return method;
    }

    public String getSerializedName() {
        return serializedName;
    }

    public ExposeMethodResult.ConflictResolutionStrategy getConflictResolutionStrategy() {
        return conflictResolutionStrategy;
    }

    public MappedMethod(Method method, String serializedName, ExposeMethodResult.ConflictResolutionStrategy conflictResolutionStrategy) {
        this.method = method;
        this.serializedName = serializedName;
        this.conflictResolutionStrategy = conflictResolutionStrategy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy