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

org.robobinding.property.Dependencies Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
package org.robobinding.property;

import java.util.Map;
import java.util.Set;

/**
 * @since 1.0
 * @author Cheng Wei
 *
 */
public class Dependencies {
	private final ObservableBean bean;
	private final Map> dependencyInfo;
	
	public Dependencies(ObservableBean bean, Map> dependencyInfo) {
		this.bean = bean;
		this.dependencyInfo = dependencyInfo;
	}

	public boolean hasDependency(String propertyName) {
		return dependencyInfo.containsKey(propertyName);
	}

	public Dependency createDependency(String propertyName) {
		return new Dependency(bean, dependencyInfo.get(propertyName));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy