public abstract class org.springframework.util.CollectionUtils
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.util.CollectionUtils
super_class: java.lang.Object
{
static final float DEFAULT_LOAD_FACTOR;
descriptor: F
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0.75
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/util/CollectionUtils;
public static boolean isEmpty(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokeinterface java.util.Collection.isEmpty:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 collection Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
collection
public static boolean isEmpty(java.util.Map<?, ?>);
descriptor: (Ljava/util/Map;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokeinterface java.util.Map.isEmpty:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 map Ljava/util/Map<**>;
Signature: (Ljava/util/Map<**>;)Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
map
public static <K, V> java.util.HashMap<K, V> newHashMap(int);
descriptor: (I)Ljava/util/HashMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.util.HashMap
dup
iload 0
i2f
ldc 0.75
fdiv
f2i
ldc 0.75
invokespecial java.util.HashMap.<init>:(IF)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 expectedSize I
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(I)Ljava/util/HashMap<TK;TV;>;
MethodParameters:
Name Flags
expectedSize
public static <K, V> java.util.LinkedHashMap<K, V> newLinkedHashMap(int);
descriptor: (I)Ljava/util/LinkedHashMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.util.LinkedHashMap
dup
iload 0
i2f
ldc 0.75
fdiv
f2i
ldc 0.75
invokespecial java.util.LinkedHashMap.<init>:(IF)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 expectedSize I
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(I)Ljava/util/LinkedHashMap<TK;TV;>;
MethodParameters:
Name Flags
expectedSize
public static java.util.List<?> arrayToList();
descriptor: (Ljava/lang/Object;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.ObjectUtils.toObjectArray:(Ljava/lang/Object;)[Ljava/lang/Object;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 source Ljava/lang/Object;
Signature: (Ljava/lang/Object;)Ljava/util/List<*>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
source
public static <E> void mergeArrayIntoCollection(, java.util.Collection<E>);
descriptor: (Ljava/lang/Object;Ljava/util/Collection;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.springframework.util.ObjectUtils.toObjectArray:(Ljava/lang/Object;)[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 5
StackMap locals: java.lang.Object java.util.Collection java.lang.Object[] top int int java.lang.Object[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 1
aload 3
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 3 4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
iload 5
if_icmplt 2
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 array Ljava/lang/Object;
0 7 1 collection Ljava/util/Collection<TE;>;
1 7 2 arr [Ljava/lang/Object;
3 4 3 elem Ljava/lang/Object;
Signature: <E:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/util/Collection<TE;>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
array
collection
public static <K, V> void mergePropertiesIntoMap(java.util.Properties, java.util.Map<K, V>);
descriptor: (Ljava/util/Properties;Ljava/util/Map;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
ifnull 9
1: aload 0
invokevirtual java.util.Properties.propertyNames:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 8
3: StackMap locals: java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: aload 0
aload 3
invokevirtual java.util.Properties.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 5: aload 4
ifnonnull 7
6: aload 0
aload 3
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
7: StackMap locals: java.lang.String java.lang.Object
StackMap stack:
aload 1
aload 3
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 props Ljava/util/Properties;
0 10 1 map Ljava/util/Map<TK;TV;>;
2 9 2 en Ljava/util/Enumeration<*>;
4 8 3 key Ljava/lang/String;
5 8 4 value Ljava/lang/Object;
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Ljava/util/Properties;Ljava/util/Map<TK;TV;>;)V
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
props
map
public static boolean contains(java.util.Iterator<?>, );
descriptor: (Ljava/util/Iterator;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 6
1: goto 5
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
aload 1
invokestatic org.springframework.util.ObjectUtils.nullSafeEquals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 iterator Ljava/util/Iterator<*>;
0 7 1 element Ljava/lang/Object;
3 5 2 candidate Ljava/lang/Object;
Signature: (Ljava/util/Iterator<*>;Ljava/lang/Object;)Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
iterator
element
public static boolean contains(java.util.Enumeration<?>, );
descriptor: (Ljava/util/Enumeration;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 6
1: goto 5
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
aload 1
invokestatic org.springframework.util.ObjectUtils.nullSafeEquals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 enumeration Ljava/util/Enumeration<*>;
0 7 1 element Ljava/lang/Object;
3 5 2 candidate Ljava/lang/Object;
Signature: (Ljava/util/Enumeration<*>;Ljava/lang/Object;)Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
enumeration
element
public static boolean containsInstance(java.util.Collection<?>, );
descriptor: (Ljava/util/Collection;Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ifnull 6
1: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.Collection java.lang.Object top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
aload 1
if_acmpne 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: StackMap locals: java.util.Collection java.lang.Object
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 collection Ljava/util/Collection<*>;
0 7 1 element Ljava/lang/Object;
3 5 2 candidate Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;Ljava/lang/Object;)Z
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
1:
MethodParameters:
Name Flags
collection
element
public static boolean containsAny(java.util.Collection<?>, java.util.Collection<?>);
descriptor: (Ljava/util/Collection;Ljava/util/Collection;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.springframework.util.CollectionUtils.findFirstMatch:(Ljava/util/Collection;Ljava/util/Collection;)Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 source Ljava/util/Collection<*>;
0 2 1 candidates Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
source
candidates
public static <E> E findFirstMatch(java.util.Collection<?>, java.util.Collection<E>);
descriptor: (Ljava/util/Collection;Ljava/util/Collection;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifne 1
aload 1
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 4: aload 0
aload 2
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifeq 6
5: aload 2
areturn
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 source Ljava/util/Collection<*>;
0 8 1 candidates Ljava/util/Collection<TE;>;
4 6 2 candidate Ljava/lang/Object;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Collection<*>;Ljava/util/Collection<TE;>;)TE;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
source
candidates
public static <T> T findValueOfType(java.util.Collection<?>, java.lang.Class<T>);
descriptor: (Ljava/util/Collection;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: java.util.Collection java.lang.Class java.lang.Object top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 5: aload 1
ifnull 6
aload 1
aload 3
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 9
6: StackMap locals: java.util.Collection java.lang.Class java.lang.Object java.lang.Object java.util.Iterator
StackMap stack:
aload 2
ifnull 8
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 3
astore 2
end local 3 9: StackMap locals: java.util.Collection java.lang.Class java.lang.Object top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 collection Ljava/util/Collection<*>;
0 11 1 type Ljava/lang/Class<TT;>;
3 11 2 value TT;
5 9 3 element Ljava/lang/Object;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Collection<*>;Ljava/lang/Class<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
collection
type
public static findValueOfType(java.util.Collection<?>, java.lang.Class<?>[]);
descriptor: (Ljava/util/Collection;[Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifne 1
aload 1
invokestatic org.springframework.util.ObjectUtils.isEmpty:([Ljava/lang/Object;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: java.util.Collection java.lang.Class[] top int int java.lang.Class[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 0
aload 2
invokestatic org.springframework.util.CollectionUtils.findValueOfType:(Ljava/util/Collection;Ljava/lang/Class;)Ljava/lang/Object;
astore 6
start local 6 5: aload 6
ifnull 7
6: aload 6
areturn
end local 6 end local 2 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 3
9: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 collection Ljava/util/Collection<*>;
0 10 1 types [Ljava/lang/Class;
4 7 2 type Ljava/lang/Class<*>;
5 7 6 value Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;[Ljava/lang/Class<*>;)Ljava/lang/Object;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
collection
types
public static boolean hasUniqueObject(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: aconst_null
astore 2
start local 2 4: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: java.util.Collection int java.lang.Object top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 6: iload 1
ifne 10
7: iconst_1
istore 1
8: aload 3
astore 2
9: goto 12
10: StackMap locals: java.util.Collection int java.lang.Object java.lang.Object java.util.Iterator
StackMap stack:
aload 2
aload 3
if_acmpeq 12
11: iconst_0
ireturn
end local 3 12: StackMap locals: java.util.Collection int java.lang.Object top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 collection Ljava/util/Collection<*>;
3 14 1 hasCandidate Z
4 14 2 candidate Ljava/lang/Object;
6 12 3 elem Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Z
MethodParameters:
Name Flags
collection
public static java.lang.Class<?> findCommonElementType(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 11
StackMap locals: java.util.Collection java.lang.Class top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 5: aload 2
ifnull 11
6: aload 1
ifnonnull 9
7: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
8: goto 11
9: StackMap locals: java.util.Collection java.lang.Class java.lang.Object java.util.Iterator
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 11
10: aconst_null
areturn
end local 2 11: StackMap locals: java.util.Collection java.lang.Class top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
12: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 collection Ljava/util/Collection<*>;
3 13 1 candidate Ljava/lang/Class<*>;
5 11 2 val Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;)Ljava/lang/Class<*>;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
collection
public static <T> T firstElement(java.util.Set<T>);
descriptor: (Ljava/util/Set;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.SortedSet
ifeq 4
3: aload 0
checkcast java.util.SortedSet
invokeinterface java.util.SortedSet.first:()Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 1
start local 1 5: aconst_null
astore 2
start local 2 6: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 8
7: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
8: StackMap locals: java.util.Iterator java.lang.Object
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 set Ljava/util/Set<TT;>;
5 9 1 it Ljava/util/Iterator<TT;>;
6 9 2 first TT;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Set<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
set
public static <T> T firstElement(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 list Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
list
public static <T> T lastElement(java.util.Set<T>);
descriptor: (Ljava/util/Set;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.SortedSet
ifeq 4
3: aload 0
checkcast java.util.SortedSet
invokeinterface java.util.SortedSet.last:()Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 1
start local 1 5: aconst_null
astore 2
start local 2 6: goto 8
7: StackMap locals: java.util.Iterator java.lang.Object
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 set Ljava/util/Set<TT;>;
5 10 1 it Ljava/util/Iterator<TT;>;
6 10 2 last TT;
Signature: <T:Ljava/lang/Object;>(Ljava/util/Set<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
set
public static <T> T lastElement(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.CollectionUtils.isEmpty:(Ljava/util/Collection;)Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 list Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;)TT;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
list
public static <A, E extends A> A[] toArray(java.util.Enumeration<E>, );
descriptor: (Ljava/util/Enumeration;[Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: goto 3
2: StackMap locals: java.util.ArrayList
StackMap stack:
aload 2
aload 0
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
4: aload 2
aload 1
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 enumeration Ljava/util/Enumeration<TE;>;
0 5 1 array [Ljava/lang/Object;
1 5 2 elements Ljava/util/ArrayList<TA;>;
Signature: <A:Ljava/lang/Object;E:TA;>(Ljava/util/Enumeration<TE;>;[TA;)[TA;
MethodParameters:
Name Flags
enumeration
array
public static <E> java.util.Iterator<E> toIterator(java.util.Enumeration<E>);
descriptor: (Ljava/util/Enumeration;)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
new org.springframework.util.CollectionUtils$EnumerationIterator
dup
aload 0
invokespecial org.springframework.util.CollectionUtils$EnumerationIterator.<init>:(Ljava/util/Enumeration;)V
goto 2
StackMap locals:
StackMap stack:
1: invokestatic java.util.Collections.emptyIterator:()Ljava/util/Iterator;
StackMap locals:
StackMap stack: java.util.Iterator
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 enumeration Ljava/util/Enumeration<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Enumeration<TE;>;)Ljava/util/Iterator<TE;>;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
enumeration
public static <K, V> org.springframework.util.MultiValueMap<K, V> toMultiValueMap(java.util.Map<K, java.util.List<V>>);
descriptor: (Ljava/util/Map;)Lorg/springframework/util/MultiValueMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.springframework.util.MultiValueMapAdapter
dup
aload 0
invokespecial org.springframework.util.MultiValueMapAdapter.<init>:(Ljava/util/Map;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 targetMap Ljava/util/Map<TK;Ljava/util/List<TV;>;>;
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Ljava/util/Map<TK;Ljava/util/List<TV;>;>;)Lorg/springframework/util/MultiValueMap<TK;TV;>;
MethodParameters:
Name Flags
targetMap
public static <K, V> org.springframework.util.MultiValueMap<K, V> unmodifiableMultiValueMap(org.springframework.util.MultiValueMap<? extends K, ? extends V>);
descriptor: (Lorg/springframework/util/MultiValueMap;)Lorg/springframework/util/MultiValueMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
ldc "'targetMap' must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
invokeinterface org.springframework.util.MultiValueMap.size:()I
invokestatic org.springframework.util.CollectionUtils.newLinkedHashMap:(I)Ljava/util/LinkedHashMap;
astore 1
start local 1 2: aload 0
aload 1
invokedynamic accept(Ljava/util/Map;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
org/springframework/util/CollectionUtils.lambda$0(Ljava/util/Map;Ljava/lang/Object;Ljava/util/List;)V (6)
(Ljava/lang/Object;Ljava/util/List;)V
invokeinterface org.springframework.util.MultiValueMap.forEach:(Ljava/util/function/BiConsumer;)V
3: aload 1
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
astore 2
start local 2 4: aload 2
invokestatic org.springframework.util.CollectionUtils.toMultiValueMap:(Ljava/util/Map;)Lorg/springframework/util/MultiValueMap;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 targetMap Lorg/springframework/util/MultiValueMap<+TK;+TV;>;
2 5 1 result Ljava/util/Map<TK;Ljava/util/List<TV;>;>;
4 5 2 unmodifiableMap Ljava/util/Map<TK;Ljava/util/List<TV;>;>;
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>(Lorg/springframework/util/MultiValueMap<+TK;+TV;>;)Lorg/springframework/util/MultiValueMap<TK;TV;>;
MethodParameters:
Name Flags
targetMap
private static void lambda$0(java.util.Map, java.lang.Object, java.util.List);
descriptor: (Ljava/util/Map;Ljava/lang/Object;Ljava/util/List;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 1 start local 2 0: aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 2: return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 key Ljava/lang/Object;
0 3 2 value Ljava/util/List<Ljava/lang/Object;>;
1 2 3 values Ljava/util/List<+TV;>;
}
SourceFile: "CollectionUtils.java"
NestMembers:
org.springframework.util.CollectionUtils$EnumerationIterator
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private EnumerationIterator = org.springframework.util.CollectionUtils$EnumerationIterator of org.springframework.util.CollectionUtils