public final class org.apache.lucene.search.TotalHits
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.search.TotalHits
super_class: java.lang.Object
{
public final long value;
descriptor: J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final org.apache.lucene.search.TotalHits$Relation relation;
descriptor: Lorg/apache/lucene/search/TotalHits$Relation;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public void <init>(long, org.apache.lucene.search.TotalHits$Relation);
descriptor: (JLorg/apache/lucene/search/TotalHits$Relation;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: lload 1
lconst_0
lcmp
ifge 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "value must be >= 0, got "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.lucene.search.TotalHits long org.apache.lucene.search.TotalHits$Relation
StackMap stack:
aload 0
lload 1
putfield org.apache.lucene.search.TotalHits.value:J
4: aload 0
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.lucene.search.TotalHits$Relation
putfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
5: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/search/TotalHits;
0 6 1 value J
0 6 3 relation Lorg/apache/lucene/search/TotalHits$Relation;
MethodParameters:
Name Flags
value
relation
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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 org.apache.lucene.search.TotalHits
astore 2
start local 2 5: aload 0
getfield org.apache.lucene.search.TotalHits.value:J
aload 2
getfield org.apache.lucene.search.TotalHits.value:J
lcmp
ifne 6
aload 0
getfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
aload 2
getfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
if_acmpne 6
iconst_1
ireturn
StackMap locals: org.apache.lucene.search.TotalHits
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/search/TotalHits;
0 7 1 o Ljava/lang/Object;
5 7 2 totalHits Lorg/apache/lucene/search/TotalHits;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.lucene.search.TotalHits.value:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
aastore
invokestatic java.util.Objects.hash:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/search/TotalHits;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield org.apache.lucene.search.TotalHits.value:J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.search.TotalHits.relation:Lorg/apache/lucene/search/TotalHits$Relation;
getstatic org.apache.lucene.search.TotalHits$Relation.EQUAL_TO:Lorg/apache/lucene/search/TotalHits$Relation;
if_acmpne 1
ldc ""
goto 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: ldc "+"
StackMap locals: org.apache.lucene.search.TotalHits
StackMap stack: java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " hits"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/search/TotalHits;
}
SourceFile: "TotalHits.java"
NestMembers:
org.apache.lucene.search.TotalHits$Relation
InnerClasses:
public final Relation = org.apache.lucene.search.TotalHits$Relation of org.apache.lucene.search.TotalHits