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

io.annot8.common.data.properties.EmptyImmutableProperties Maven / Gradle / Ivy

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