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

src.main.java.com.vincomobile.fw.basic.hooks.HookResult Maven / Gradle / Ivy

There is a newer version: 5.1.0-RELEASE
Show newest version
package com.vincomobile.fw.basic.hooks;

import java.util.HashMap;
import java.util.Map;

public class HookResult {

    public Map values = new HashMap<>();
    public boolean success = true;
    public String error = "";

    public void put(String key, Object value) {
        this.values.put(key, value);
    }

    public Object get(String key) {
        return values.get(key);
    }

    public boolean hasKey(String key) {
        return values.containsKey(key);
    }

    public void setError(String error) {
        this.success = false;
        this.error = error;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy