io.annot8.common.data.properties.EmptyImmutableProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annot8-common-data Show documentation
Show all versions of annot8-common-data Show documentation
Common data (bounds and content) definitions
The newest version!
/* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.common.data.properties;
import io.annot8.api.properties.ImmutableProperties;
import java.util.Collections;
import java.util.Map;
/** Empty implementation of ImmutableProperties interface */
public final class EmptyImmutableProperties implements ImmutableProperties {
private static final EmptyImmutableProperties INSTANCE = new EmptyImmutableProperties();
private EmptyImmutableProperties() {
// Empty constructor
}
/**
* Get the singleton instance of EmptyImmutableProperties
*
* @return instance
*/
public static EmptyImmutableProperties getInstance() {
return INSTANCE;
}
@Override
public Map getAll() {
return Collections.emptyMap();
}
@Override
public String toString() {
return "EmptyImmutableProperties";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy