org.robobinding.property.Dependencies Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robobinding Show documentation
Show all versions of robobinding Show documentation
A Presentation Model(MVVM) framework for the Android platform
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