public class org.eclipse.collections.impl.block.procedure.MaxByProcedure<T, V extends java.lang.Comparable<? super V>> implements org.eclipse.collections.api.block.procedure.Procedure<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.collections.impl.block.procedure.MaxByProcedure
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
protected final org.eclipse.collections.api.block.function.Function<? super T, ? extends V> function;
descriptor: Lorg/eclipse/collections/api/block/function/Function;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
protected boolean visitedAtLeastOnce;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected T result;
descriptor: Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Signature: TT;
protected V cachedResultValue;
descriptor: Ljava/lang/Comparable;
flags: (0x0004) ACC_PROTECTED
Signature: 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
aload 1
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.function:Lorg/eclipse/collections/api/block/function/Function;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/block/procedure/MaxByProcedure<TT;TV;>;
0 3 1 function Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;
Signature: (Lorg/eclipse/collections/api/block/function/Function<-TT;+TV;>;)V
MethodParameters:
Name Flags
function
public boolean isVisitedAtLeastOnce();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.visitedAtLeastOnce:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/block/procedure/MaxByProcedure<TT;TV;>;
public T getResult();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.visitedAtLeastOnce:Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.result:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/block/procedure/MaxByProcedure<TT;TV;>;
Signature: ()TT;
public java.util.Optional<T> getResultOptional();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.visitedAtLeastOnce:Z
ifne 2
1: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.result:Ljava/lang/Object;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/collections/impl/block/procedure/MaxByProcedure<TT;TV;>;
Signature: ()Ljava/util/Optional<TT;>;
public void value();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.visitedAtLeastOnce:Z
ifeq 6
1: aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.function:Lorg/eclipse/collections/api/block/function/Function;
aload 1
invokeinterface org.eclipse.collections.api.block.function.Function.valueOf:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Comparable
astore 2
start local 2 2: aload 2
aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.cachedResultValue:Ljava/lang/Comparable;
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
ifle 9
3: aload 0
aload 1
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.result:Ljava/lang/Object;
4: aload 0
aload 2
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.cachedResultValue:Ljava/lang/Comparable;
end local 2 5: goto 9
6: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.visitedAtLeastOnce:Z
7: aload 0
aload 1
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.result:Ljava/lang/Object;
8: aload 0
aload 0
getfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.function:Lorg/eclipse/collections/api/block/function/Function;
aload 1
invokeinterface org.eclipse.collections.api.block.function.Function.valueOf:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Comparable
putfield org.eclipse.collections.impl.block.procedure.MaxByProcedure.cachedResultValue:Ljava/lang/Comparable;
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/collections/impl/block/procedure/MaxByProcedure<TT;TV;>;
0 10 1 each TT;
2 5 2 eachValue TV;
Signature: (TT;)V
MethodParameters:
Name Flags
each
}
Signature: <T:Ljava/lang/Object;V::Ljava/lang/Comparable<-TV;>;>Ljava/lang/Object;Lorg/eclipse/collections/api/block/procedure/Procedure<TT;>;
SourceFile: "MaxByProcedure.java"