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

io.github.mmm.property.locale.PropertyFactoryLocale Maven / Gradle / Ivy

The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.property.locale;

import java.util.Locale;

import io.github.mmm.property.PropertyMetadata;
import io.github.mmm.property.ReadableProperty;
import io.github.mmm.property.WritableProperty;
import io.github.mmm.property.factory.AbstractSimplePropertyFactory;
import io.github.mmm.property.factory.PropertyFactory;

/**
 * Implementation of {@link PropertyFactory} for {@link LocaleProperty}.
 *
 * @since 1.0.0
 */
public class PropertyFactoryLocale extends AbstractSimplePropertyFactory {

  @Override
  public Class getValueClass() {

    return Locale.class;
  }

  @Override
  public Class> getReadableInterface() {

    return ReadableLocaleProperty.class;
  }

  @Override
  public Class> getWritableInterface() {

    return WritableLocaleProperty.class;
  }

  @Override
  public Class getImplementationClass() {

    return LocaleProperty.class;
  }

  @Override
  public LocaleProperty create(String name, PropertyMetadata metadata) {

    return new LocaleProperty(name, metadata);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy