
org.mydotey.scf.facade.LabeledProperties Maven / Gradle / Ivy
package org.mydotey.scf.facade;
import java.util.Collection;
import org.mydotey.scf.labeled.DefaultLabeledKey;
import org.mydotey.scf.labeled.DefaultPropertyLabel;
import org.mydotey.scf.labeled.DefaultPropertyLabels;
import org.mydotey.scf.labeled.LabeledKey;
import org.mydotey.scf.labeled.PropertyLabel;
import org.mydotey.scf.labeled.PropertyLabels;
/**
* @author koqizhao
*
* Jun 19, 2018
*/
public class LabeledProperties {
protected LabeledProperties() {
}
public static LabeledKey.Builder newKeyBuilder() {
return new DefaultLabeledKey.Builder<>();
}
public static PropertyLabel newLabel(Object key, Object value) {
return new DefaultPropertyLabel(key, value);
}
public static PropertyLabels newLabels(Collection labels) {
return newLabels(labels, null);
}
public static PropertyLabels newLabels(Collection labels, PropertyLabels alternative) {
return new DefaultPropertyLabels(labels, alternative);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy