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

no.difi.certvalidator.util.DummyReport Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package no.difi.certvalidator.util;

import no.difi.certvalidator.api.Property;
import no.difi.certvalidator.api.Report;

import java.util.Collections;
import java.util.Set;

/**
 * @author erlend
 */
public class DummyReport implements Report {

    public static final DummyReport INSTANCE = new DummyReport();

    private DummyReport() {
        // No action.
    }

    @Override
    public  boolean contains(Property key) {
        return false;
    }

    @Override
    public  void set(Property key, T value) {
        // No action.
    }

    @Override
    public  T get(Property key) {
        return null;
    }

    @Override
    public Set keys() {
        return Collections.emptySet();
    }

    @Override
    public Report copy() {
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy