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

com.mikerusoft.jsonable.adapters.MethodWrapper Maven / Gradle / Ivy

There is a newer version: 1.2.13
Show newest version
package com.mikerusoft.jsonable.adapters;

import java.lang.reflect.Method;

/**
 * Wrapper for java.lang.Method contains additional info for serializing with jsonable
 * property name (name
 * @author Grinfeld Mikhail
 * @since 7/31/2016 10:09 AM
 */
public class MethodWrapper {
    Method setter;
    Method getter;
    String property;
    String name;

    public MethodWrapper(String property, String name, Method setter, Method getter) {
        this.property = property;
        this.name = name;
        this.setter = setter;
        this.getter = getter;
    }

    public Method getSetter() { return setter; }
    public void setSetter(Method setter) { this.setter = setter; }
    public Method getGetter() { return getter; }
    public void setGetter(Method getter) { this.getter = getter; }
    public String getProperty() { return property; }
    public void setProperty(String property) { this.property = property; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy