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

com.unzer.payment.communication.JsonFieldIgnoreStragegy Maven / Gradle / Ivy

package com.unzer.payment.communication;

import com.google.gson.ExclusionStrategy;
import com.google.gson.FieldAttributes;

public class JsonFieldIgnoreStragegy implements ExclusionStrategy {

    @Override
    public boolean shouldSkipField(FieldAttributes f) {
        return f.getAnnotation(JsonFieldIgnore.class) != null;
    }

    @Override
    public boolean shouldSkipClass(Class clazz) {
        return false;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy