io.ebeaninternal.server.properties.BeanPropertiesReader Maven / Gradle / Ivy
package io.ebeaninternal.server.properties;
import java.util.HashMap;
import java.util.Map;
/**
* Determines the properties on a given bean.
*/
public final class BeanPropertiesReader {
private final Map propertyIndexMap = new HashMap<>();
public BeanPropertiesReader(String[] props) {
for (int i = 0; i < props.length; i++) {
propertyIndexMap.put(props[i], i);
}
}
public Integer propertyIndex(String property) {
return propertyIndexMap.get(property);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy