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

io.ebeaninternal.server.properties.BeanPropertiesReader Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
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