io.protostuff.generator.PropertyProviderImpl Maven / Gradle / Ivy
package io.protostuff.generator;
import com.google.common.base.Preconditions;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
/**
* Custom property provider for proto tree nodes.
*
* @author Kostiantyn Shchepanovskyi
*/
public class PropertyProviderImpl implements PropertyProvider {
private final Map> propertyProviders = new HashMap<>();
@Override
public boolean hasProperty(String propertyName) {
return propertyProviders.containsKey(propertyName);
}
@SuppressWarnings("unchecked")
@Override
public Object getProperty(Object object, String propertyName) {
Function
© 2015 - 2024 Weber Informatics LLC | Privacy Policy