/** * Initializes a property with type and value * @param valueClass type of the property * @param value value of the property */ public ReadOnlyProperty(Class<V> valueClass, V value) { if(valueClass == null){ throw new NullPointerException(); } myValueClass = valueClass; mySource = new DefaultSource<V>(value); }
public static <V> Configuration<String> buildEmptySelfBuildingConfig( V service){ return buildBaseConfig(null, null, new EmptySelfBuilder<V>(new DefaultSource<V>(service))); }