class com.mongodb.client.model.Updates$WithEachUpdate<TItem> implements org.bson.conversions.Bson
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.client.model.Updates$WithEachUpdate
super_class: java.lang.Object
{
private final java.lang.String fieldName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<TItem> values;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<TTItem;>;
private final java.lang.String operator;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, java.util.List<TItem>, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "fieldName"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
2: aload 0
ldc "values"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
putfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
3: aload 0
aload 3
putfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
0 5 1 fieldName Ljava/lang/String;
0 5 2 values Ljava/util/List<TTItem;>;
0 5 3 operator Ljava/lang/String;
Signature: (Ljava/lang/String;Ljava/util/List<TTItem;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
fieldName final
values final
operator final
public <TDocument> org.bson.BsonDocument toBsonDocument(java.lang.Class<TDocument>, org.bson.codecs.configuration.CodecRegistry);
descriptor: (Ljava/lang/Class;Lorg/bson/codecs/configuration/CodecRegistry;)Lorg/bson/BsonDocument;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new org.bson.BsonDocumentWriter
dup
new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
invokespecial org.bson.BsonDocumentWriter.<init>:(Lorg/bson/BsonDocument;)V
astore 3
start local 3 1: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeStartDocument:()V
2: aload 3
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
invokevirtual org.bson.BsonDocumentWriter.writeName:(Ljava/lang/String;)V
3: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeStartDocument:()V
4: aload 3
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
invokevirtual org.bson.BsonDocumentWriter.writeName:(Ljava/lang/String;)V
5: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeStartDocument:()V
6: aload 3
ldc "$each"
invokevirtual org.bson.BsonDocumentWriter.writeStartArray:(Ljava/lang/String;)V
7: aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: com.mongodb.client.model.Updates$WithEachUpdate java.lang.Class org.bson.codecs.configuration.CodecRegistry org.bson.BsonDocumentWriter top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 4
start local 4 9: aload 3
aload 4
aload 2
invokestatic com.mongodb.client.model.BuildersHelper.encodeValue:(Lorg/bson/BsonDocumentWriter;Ljava/lang/Object;Lorg/bson/codecs/configuration/CodecRegistry;)V
end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
11: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeEndArray:()V
12: aload 0
aload 3
aload 1
aload 2
invokevirtual com.mongodb.client.model.Updates$WithEachUpdate.writeAdditionalFields:(Lorg/bson/BsonDocumentWriter;Ljava/lang/Class;Lorg/bson/codecs/configuration/CodecRegistry;)V
13: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeEndDocument:()V
14: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeEndDocument:()V
15: aload 3
invokevirtual org.bson.BsonDocumentWriter.writeEndDocument:()V
16: aload 3
invokevirtual org.bson.BsonDocumentWriter.getDocument:()Lorg/bson/BsonDocument;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
0 17 1 tDocumentClass Ljava/lang/Class<TTDocument;>;
0 17 2 codecRegistry Lorg/bson/codecs/configuration/CodecRegistry;
1 17 3 writer Lorg/bson/BsonDocumentWriter;
9 10 4 value TTItem;
Signature: <TDocument:Ljava/lang/Object;>(Ljava/lang/Class<TTDocument;>;Lorg/bson/codecs/configuration/CodecRegistry;)Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
tDocumentClass final
codecRegistry final
protected <TDocument> void writeAdditionalFields(org.bson.BsonDocumentWriter, java.lang.Class<TDocument>, org.bson.codecs.configuration.CodecRegistry);
descriptor: (Lorg/bson/BsonDocumentWriter;Ljava/lang/Class;Lorg/bson/codecs/configuration/CodecRegistry;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
0 1 1 writer Lorg/bson/BsonDocumentWriter;
0 1 2 tDocumentClass Ljava/lang/Class<TTDocument;>;
0 1 3 codecRegistry Lorg/bson/codecs/configuration/CodecRegistry;
Signature: <TDocument:Ljava/lang/Object;>(Lorg/bson/BsonDocumentWriter;Ljava/lang/Class<TTDocument;>;Lorg/bson/codecs/configuration/CodecRegistry;)V
MethodParameters:
Name Flags
writer final
tDocumentClass final
codecRegistry final
protected java.lang.String additionalFieldsToString();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc ""
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.client.model.Updates$WithEachUpdate
astore 2
start local 2 5: aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
aload 2
getfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals: com.mongodb.client.model.Updates$WithEachUpdate
StackMap stack:
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
aload 2
getfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
ifnull 10
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
aload 2
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
goto 12
StackMap locals:
StackMap stack:
10: aload 2
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
ifnonnull 11
iconst_1
goto 12
StackMap locals:
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
0 13 1 o Ljava/lang/Object;
5 13 2 that Lcom/mongodb/client/model/Updates$WithEachUpdate<*>;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
invokeinterface java.util.List.hashCode:()I
iadd
istore 1
2: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
ifnull 3
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
goto 4
StackMap locals: com.mongodb.client.model.Updates$WithEachUpdate int
StackMap stack: int
3: iconst_0
StackMap locals: com.mongodb.client.model.Updates$WithEachUpdate int
StackMap stack: int int
4: iadd
istore 1
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
1 6 1 result I
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 "Each Update{fieldName='"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.fieldName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
2: ldc ", operator='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.operator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: ldc ", values="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.client.model.Updates$WithEachUpdate.values:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
4: aload 0
invokevirtual com.mongodb.client.model.Updates$WithEachUpdate.additionalFieldsToString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/client/model/Updates$WithEachUpdate<TTItem;>;
}
Signature: <TItem:Ljava/lang/Object;>Ljava/lang/Object;Lorg/bson/conversions/Bson;
SourceFile: "Updates.java"
NestHost: com.mongodb.client.model.Updates
InnerClasses:
private WithEachUpdate = com.mongodb.client.model.Updates$WithEachUpdate of com.mongodb.client.model.Updates