public class org.eclipse.collections.impl.block.function.CaseFunction<T extends java.lang.Comparable<? super T>, V> implements org.eclipse.collections.api.block.function.Function<T, V>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.collections.impl.block.function.CaseFunction
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final org.eclipse.collections.api.list.MutableList<org.eclipse.collections.api.tuple.Pair<org.eclipse.collections.api.block.predicate.Predicate<? super T>, org.eclipse.collections.api.block.function.Function<? super T, ? extends V>>> predicateFunctions;
descriptor: Lorg/eclipse/collections/api/list/MutableList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/api/list/MutableList<Lorg/eclipse/collections/api/tuple/Pair<Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;>;>;
private org.eclipse.collections.api.block.function.Function<? super T, ? extends V> defaultFunction;
descriptor: Lorg/eclipse/collections/api/block/function/Function;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.eclipse.collections.impl.factory.Lists.mutable:Lorg/eclipse/collections/api/factory/list/MutableListFactory;
invokeinterface org.eclipse.collections.api.factory.list.MutableListFactory.empty:()Lorg/eclipse/collections/api/list/MutableList;
putfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
public void <init>(org.eclipse.collections.api.block.function.Function<? super T, ? extends V>);
descriptor: (Lorg/eclipse/collections/api/block/function/Function;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.eclipse.collections.impl.factory.Lists.mutable:Lorg/eclipse/collections/api/factory/list/MutableListFactory;
invokeinterface org.eclipse.collections.api.factory.list.MutableListFactory.empty:()Lorg/eclipse/collections/api/list/MutableList;
putfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
2: aload 0
aload 1
putfield org.eclipse.collections.impl.block.function.CaseFunction.defaultFunction:Lorg/eclipse/collections/api/block/function/Function;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
0 4 1 newDefaultFunction Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
Signature: (Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;)V
MethodParameters:
Name Flags
newDefaultFunction
public org.eclipse.collections.impl.block.function.CaseFunction<T, V> addCase(org.eclipse.collections.api.block.predicate.Predicate<? super T>, org.eclipse.collections.api.block.function.Function<? super T, ? extends V>);
descriptor: (Lorg/eclipse/collections/api/block/predicate/Predicate;Lorg/eclipse/collections/api/block/function/Function;)Lorg/eclipse/collections/impl/block/function/CaseFunction;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
aload 1
aload 2
invokestatic org.eclipse.collections.impl.tuple.Tuples.pair:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/eclipse/collections/api/tuple/Pair;
invokeinterface org.eclipse.collections.api.list.MutableList.add:(Ljava/lang/Object;)Z
pop
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
0 2 1 predicate Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;
0 2 2 function Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
Signature: (Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;)Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
MethodParameters:
Name Flags
predicate
function
public org.eclipse.collections.impl.block.function.CaseFunction<T, V> setDefault(org.eclipse.collections.api.block.function.Function<? super T, ? extends V>);
descriptor: (Lorg/eclipse/collections/api/block/function/Function;)Lorg/eclipse/collections/impl/block/function/CaseFunction;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.eclipse.collections.impl.block.function.CaseFunction.defaultFunction:Lorg/eclipse/collections/api/block/function/Function;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
0 2 1 function Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
Signature: (Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;)Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
MethodParameters:
Name Flags
function
public V valueOf();
descriptor: (Ljava/lang/Comparable;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
invokeinterface org.eclipse.collections.api.list.MutableList.size:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
iload 3
invokeinterface org.eclipse.collections.api.list.MutableList.get:(I)Ljava/lang/Object;
checkcast org.eclipse.collections.api.tuple.Pair
astore 4
start local 4 4: aload 4
invokeinterface org.eclipse.collections.api.tuple.Pair.getOne:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.block.predicate.Predicate
aload 1
invokeinterface org.eclipse.collections.api.block.predicate.Predicate.accept:(Ljava/lang/Object;)Z
ifeq 6
5: aload 4
invokeinterface org.eclipse.collections.api.tuple.Pair.getTwo:()Ljava/lang/Object;
checkcast org.eclipse.collections.api.block.function.Function
aload 1
invokeinterface org.eclipse.collections.api.block.function.Function.valueOf:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 2
if_icmplt 3
end local 3 8: aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.defaultFunction:Lorg/eclipse/collections/api/block/function/Function;
ifnull 10
9: aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.defaultFunction:Lorg/eclipse/collections/api/block/function/Function;
aload 1
invokeinterface org.eclipse.collections.api.block.function.Function.valueOf:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
0 11 1 argument TT;
1 11 2 localSize I
2 8 3 i I
4 6 4 pair Lorg/eclipse/collections/api/tuple/Pair<Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;>;
Signature: (TT;)TV;
MethodParameters:
Name Flags
argument
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "new CaseFunction("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.eclipse.collections.impl.block.function.CaseFunction.predicateFunctions:Lorg/eclipse/collections/api/list/MutableList;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/block/function/CaseFunction<TT;TV;>;
public java.lang.Object valueOf(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Comparable
invokevirtual org.eclipse.collections.impl.block.function.CaseFunction.valueOf:(Ljava/lang/Comparable;)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T::Ljava/lang/Comparable<-TT;>;V:Ljava/lang/Object;>Ljava/lang/Object;Lorg/eclipse/collections/api/block/function/Function<TT;TV;>;
SourceFile: "CaseFunction.java"