[LANG-819] support ? extends as type parameter for input Iterables on #generateBitVector() methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1557159 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
19714df228
commit
7a62fabdfc
|
@ -139,7 +139,7 @@ public class EnumUtils {
|
|||
* @since 3.0.1
|
||||
* @see #generateBitVectors(Class, Iterable)
|
||||
*/
|
||||
public static <E extends Enum<E>> long generateBitVector(final Class<E> enumClass, final Iterable<E> values) {
|
||||
public static <E extends Enum<E>> long generateBitVector(final Class<E> enumClass, final Iterable<? extends E> values) {
|
||||
checkBitVectorable(enumClass);
|
||||
Validate.notNull(values);
|
||||
long total = 0;
|
||||
|
@ -166,7 +166,7 @@ public class EnumUtils {
|
|||
* @throws IllegalArgumentException if {@code enumClass} is not an enum class, or if any {@code values} {@code null}
|
||||
* @since 3.2
|
||||
*/
|
||||
public static <E extends Enum<E>> long[] generateBitVectors(final Class<E> enumClass, final Iterable<E> values) {
|
||||
public static <E extends Enum<E>> long[] generateBitVectors(final Class<E> enumClass, final Iterable<? extends E> values) {
|
||||
asEnum(enumClass);
|
||||
Validate.notNull(values);
|
||||
final EnumSet<E> condensed = EnumSet.noneOf(enumClass);
|
||||
|
|
Loading…
Reference in New Issue