类的使用
org.springframework.boot.context.properties.PropertyMapper.Source
使用PropertyMapper.Source的程序包
-
org.springframework.boot.context.properties中PropertyMapper.Source的使用
修饰符和类型方法说明<T> PropertyMapper.Source<T> PropertyMapper.SourceOperator.apply(PropertyMapper.Source<T> source) Apply the operation to the given source.<R> PropertyMapper.Source<R> Return an adapted version of the source changed through the given adapter function.<R extends Number>
PropertyMapper.Source<Integer> Return an adapted version of the source withIntegertype.<T> PropertyMapper.Source<T> Return a newPropertyMapper.Sourcefrom the specified value supplier that can be used to perform the mapping.<T> PropertyMapper.Source<T> PropertyMapper.from(T value) Return a newPropertyMapper.Sourcefrom the specified value that can be used to perform the mapping.Return a filtered version of the source that won't map values that don't match the given predicate.PropertyMapper.Source.whenEqualTo(Object object) Return a filtered version of the source that will only map values equal to the specifiedobject.PropertyMapper.Source.whenFalse()Return a filtered version of the source that will only map values that arefalse.PropertyMapper.Source.whenHasText()Return a filtered version of the source that will only map values that have atoString()containing actual text.<R extends T>
PropertyMapper.Source<R> PropertyMapper.Source.whenInstanceOf(Class<R> target) Return a filtered version of the source that will only map values that are an instance of the given type.PropertyMapper.Source.whenNonNull()Return a filtered version of the source that won't map non-null values or suppliers that throw aNullPointerException.Return a filtered version of the source that won't map values that match the given predicate.PropertyMapper.Source.whenTrue()Return a filtered version of the source that will only map values that aretrue.修饰符和类型方法说明<T> PropertyMapper.Source<T> PropertyMapper.SourceOperator.apply(PropertyMapper.Source<T> source) Apply the operation to the given source.