类 Option<V extends Serializable>
java.lang.Object
cn.dinodev.spring.commons.data.Option<V>
- 所有已实现的接口:
ValueLabel<V>
- 作者:
- Cody Lu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl) 从 ValueLabel 对象创建一个 Option 对象。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper, Function<V, String> styleMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标和样式。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper, Function<V, String> styleMapper, Function<V, String> descMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标、样式和描述。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier, Supplier<String> styleSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标和样式。static <V extends Serializable>
Option<V>fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier, Supplier<String> styleSupplier, Supplier<String> descSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标、样式和描述。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.dinodev.spring.commons.data.ValueLabel
getLabel, getValue
-
构造器详细资料
-
Option
public Option()
-
-
方法详细资料
-
fromValueLabel
从 ValueLabel 对象创建一个 Option 对象。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconSupplier- 图标提供者- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier, Supplier<String> styleSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标和样式。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconSupplier- 图标提供者styleSupplier- 样式提供者- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Supplier<String> iconSupplier, Supplier<String> styleSupplier, Supplier<String> descSupplier) 从 ValueLabel 对象创建一个 Option 对象,并映射图标、样式和描述。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconSupplier- 图标提供者styleSupplier- 样式提供者descSupplier- 描述提供者- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconMapper- 图标映射函数,传入选项value,返回图标- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper, Function<V, String> styleMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标和样式。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconMapper- 图标映射函数,传入选项value,返回图标styleMapper- 样式映射函数,传入选项value,返回样式- 返回:
- Option 对象
-
fromValueLabel
public static <V extends Serializable> Option<V> fromValueLabel(ValueLabel<V> vl, Function<V, String> iconMapper, Function<V, String> styleMapper, Function<V, String> descMapper) 从 ValueLabel 对象创建一个 Option 对象,并映射图标、样式和描述。- 类型参数:
V- 选项值的类型- 参数:
vl- ValueLabel 对象iconMapper- 图标映射函数,传入选项value,返回图标styleMapper- 样式映射函数,传入选项value,返回样式descMapper- 描述映射函数,传入选项value,返回描述- 返回:
- Option 对象
-