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

jdash.client.response.impl.GDCachedObjectResponse Maven / Gradle / Ivy

The newest version!
package jdash.client.response.impl;

import jdash.client.response.GDResponse;
import reactor.core.publisher.Mono;

import java.util.function.Function;

public final class GDCachedObjectResponse implements GDResponse {

    private final Object cached;

    public GDCachedObjectResponse(Object cached) {
        this.cached = cached;
    }

    @SuppressWarnings("unchecked")
    @Override
    public  Mono deserialize(Function deserializer) {
        return Mono.just((E) cached);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy