public final class com.mongodb.client.model.geojson.LineString extends com.mongodb.client.model.geojson.Geometry
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.client.model.geojson.LineString
super_class: com.mongodb.client.model.geojson.Geometry
{
private final java.util.List<com.mongodb.client.model.geojson.Position> coordinates;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;
public void <init>(java.util.List<com.mongodb.client.model.geojson.Position>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokespecial com.mongodb.client.model.geojson.LineString.<init>:(Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;Ljava/util/List;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/geojson/LineString;
0 2 1 coordinates Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;
Signature: (Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;)V
MethodParameters:
Name Flags
coordinates final
public void <init>(com.mongodb.client.model.geojson.CoordinateReferenceSystem, java.util.List<com.mongodb.client.model.geojson.Position>);
descriptor: (Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial com.mongodb.client.model.geojson.Geometry.<init>:(Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;)V
1: ldc "coordinates"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: ldc "coordinates must contain at least two positions"
aload 2
invokeinterface java.util.List.size:()I
iconst_2
if_icmplt 3
iconst_1
goto 4
StackMap locals: com.mongodb.client.model.geojson.LineString com.mongodb.client.model.geojson.CoordinateReferenceSystem java.util.List
StackMap stack: java.lang.String
3: iconst_0
StackMap locals: com.mongodb.client.model.geojson.LineString com.mongodb.client.model.geojson.CoordinateReferenceSystem java.util.List
StackMap stack: java.lang.String int
4: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
5: ldc "coordinates contains only non-null positions"
aload 2
aconst_null
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 6
iconst_0
goto 7
StackMap locals:
StackMap stack: java.lang.String
6: iconst_1
StackMap locals: com.mongodb.client.model.geojson.LineString com.mongodb.client.model.geojson.CoordinateReferenceSystem java.util.List
StackMap stack: java.lang.String int
7: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
8: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/client/model/geojson/LineString;
0 10 1 coordinateReferenceSystem Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;
0 10 2 coordinates Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;
Signature: (Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;)V
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
MethodParameters:
Name Flags
coordinateReferenceSystem final
coordinates final
public com.mongodb.client.model.geojson.GeoJsonObjectType getType();
descriptor: ()Lcom/mongodb/client/model/geojson/GeoJsonObjectType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic com.mongodb.client.model.geojson.GeoJsonObjectType.LINE_STRING:Lcom/mongodb/client/model/geojson/GeoJsonObjectType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/geojson/LineString;
public java.util.List<com.mongodb.client.model.geojson.Position> getCoordinates();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/geojson/LineString;
Signature: ()Ljava/util/List<Lcom/mongodb/client/model/geojson/Position;>;
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 0
aload 1
invokespecial com.mongodb.client.model.geojson.Geometry.equals:(Ljava/lang/Object;)Z
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.client.model.geojson.LineString
astore 2
start local 2 7: aload 0
getfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
aload 2
getfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals: com.mongodb.client.model.geojson.LineString
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/client/model/geojson/LineString;
0 10 1 o Ljava/lang/Object;
7 10 2 lineString Lcom/mongodb/client/model/geojson/LineString;
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
invokespecial com.mongodb.client.model.geojson.Geometry.hashCode:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
invokeinterface java.util.List.hashCode:()I
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/geojson/LineString;
1 2 1 result I
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
ldc "LineString{coordinates="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.client.model.geojson.LineString.coordinates:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: aload 0
invokevirtual com.mongodb.client.model.geojson.LineString.getCoordinateReferenceSystem:()Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;
ifnonnull 3
ldc ""
goto 4
StackMap locals:
StackMap stack: java.lang.StringBuilder
3: new java.lang.StringBuilder
dup
ldc ", coordinateReferenceSystem="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.mongodb.client.model.geojson.LineString.getCoordinateReferenceSystem:()Lcom/mongodb/client/model/geojson/CoordinateReferenceSystem;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: com.mongodb.client.model.geojson.LineString
StackMap stack: java.lang.StringBuilder java.lang.String
4: 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/geojson/LineString;
}
SourceFile: "LineString.java"