Java Code Examples for org.apache.commons.lang3.EnumUtils#generateBitVector()
The following examples show how to use
org.apache.commons.lang3.EnumUtils#generateBitVector() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EnumUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long(按bits 1,2,4,8...的方式叠加),用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final Iterable<? extends E> values) { return EnumUtils.generateBitVector(enumClass, values); }
Example 2
Source File: EnumUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long(按bits 1,2,4,8...的方式叠加),用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final E... values) { return EnumUtils.generateBitVector(enumClass, values); }
Example 3
Source File: EnumUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long(按bits 1,2,4,8...的方式叠加),用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final Iterable<? extends E> values) { return EnumUtils.generateBitVector(enumClass, values); }
Example 4
Source File: EnumUtil.java From vjtools with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long(按bits 1,2,4,8...的方式叠加),用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final E... values) { return EnumUtils.generateBitVector(enumClass, values); }
Example 5
Source File: EnumUtil.java From j360-dubbo-app-all with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long,用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final Iterable<? extends E> values) { return EnumUtils.generateBitVector(enumClass, values); }
Example 6
Source File: EnumUtil.java From j360-dubbo-app-all with Apache License 2.0 | 4 votes |
/** * 将若干个枚举值转换为long,用于使用long保存多个选项的情况. */ public static <E extends Enum<E>> long generateBits(final Class<E> enumClass, final E... values) { return EnumUtils.generateBitVector(enumClass, values); }