test_class.declarator: temporalGeomericPrimitive1
test_class.modifier: private
test_class.original_string: private TemporalGeometricPrimitive temporalGeomericPrimitive1;
test_class.type: TemporalGeometricPrimitive
test_class.var_name: temporalGeomericPrimitive1
test_class.declarator: temporalGeomericPrimitive2
test_class.modifier: private
test_class.original_string: private TemporalGeometricPrimitive temporalGeomericPrimitive2;
test_class.type: TemporalGeometricPrimitive
test_class.var_name: temporalGeomericPrimitive2
test_class.declarator: position1
test_class.modifier: private
test_class.original_string: private Position position1;
test_class.type: Position
test_class.var_name: position1
test_class.declarator: position2
test_class.modifier: private
test_class.original_string: private Position position2;
test_class.type: Position
test_class.var_name: position2
test_class.declarator: cal = Calendar.getInstance()
test_class.modifier: private
test_class.original_string: private Calendar cal = Calendar.getInstance();
test_class.type: Calendar
test_class.var_name: cal
test_class.file: modules/library/main/src/test/java/org/geotools/temporal/object/DefaultTemporalGeometricPrimitiveTest.java
test_class.identifier: DefaultTemporalGeometricPrimitiveTest
test_case.body: @Test
      public void testLength() {
          cal.set(2020, 0, 1);
          temporalGeomericPrimitive1 = new DefaultPeriod(new DefaultInstant(position1), new DefaultInstant(position2));
          temporalGeomericPrimitive2 = new DefaultPeriod(new DefaultInstant(position2), new DefaultInstant(new DefaultPosition(cal.getTime())));
          Duration result = temporalGeomericPrimitive1.length();
          assertFalse(temporalGeomericPrimitive2.length().equals(result));
      }
test_case.class_method_signature: DefaultTemporalGeometricPrimitiveTest.testLength()
test_case.full_signature: @Test public void testLength()
test_case.identifier: testLength
test_case.invocations: set getTime length assertFalse equals length
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLength()
focal_class.file: modules/library/main/src/main/java/org/geotools/temporal/object/DefaultTemporalGeometricPrimitive.java
focal_class.identifier: DefaultTemporalGeometricPrimitive
focal_class.interfaces: implements TemporalGeometricPrimitive, Separation
focal_class.class_method_signature: DefaultTemporalGeometricPrimitive.distance(TemporalGeometricPrimitive other)
focal_class.full_signature: public Duration distance(TemporalGeometricPrimitive other)
focal_class.identifier: distance
focal_class.modifiers: public
focal_class.parameters: (TemporalGeometricPrimitive other)
focal_class.return: Duration
focal_class.signature: Duration distance(TemporalGeometricPrimitive other)
focal_class.class_method_signature: DefaultTemporalGeometricPrimitive.length()
focal_class.full_signature: public Duration length()
focal_class.identifier: length
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Duration
focal_class.signature: Duration length()
focal_class.superclass: extends DefaultTemporalPrimitive
focal_method.body: public Duration length() {
          Duration response = null;
          long diff = 0L;
          if (this instanceof Instant) {
              response = new DefaultPeriodDuration(Math.abs(diff));
              return response;
          } else {
              if (this instanceof Period) {
                  if (((Period) this).getBeginning() != null &&
                          ((Period) this).getEnding() != null) {
                      response = ((DefaultInstant) ((Period) this).getBeginning()).distance(((DefaultInstant) ((Period) this).getEnding()));
                      return response;
                  }
              }
              return null;
          }
      }
focal_method.class_method_signature: DefaultTemporalGeometricPrimitive.length()
focal_method.full_signature: public Duration length()
focal_method.identifier: length
focal_method.invocations: abs getBeginning getEnding distance getBeginning getEnding
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Duration
focal_method.signature: Duration length()