test_class.declarator: registry = new PersistenceServiceRegistry() {
  
          private final PersistenceService testPersistenceService = new TestPersistenceService();
  
          @Override
          public String getDefaultId() {
              // not available
              return null;
          }
  
          @Override
          public PersistenceService getDefault() {
              // not available
              return null;
          }
  
          @Override
          public Set<PersistenceService> getAll() {
              return Set.of(testPersistenceService);
          }
  
          @Override
          public PersistenceService get(String serviceId) {
              return testPersistenceService;
          }
      }
test_class.modifier: private final
test_class.original_string: private final PersistenceServiceRegistry registry = new PersistenceServiceRegistry() {
  
          private final PersistenceService testPersistenceService = new TestPersistenceService();
  
          @Override
          public String getDefaultId() {
              // not available
              return null;
          }
  
          @Override
          public PersistenceService getDefault() {
              // not available
              return null;
          }
  
          @Override
          public Set<PersistenceService> getAll() {
              return Set.of(testPersistenceService);
          }
  
          @Override
          public PersistenceService get(String serviceId) {
              return testPersistenceService;
          }
      };
test_class.type: PersistenceServiceRegistry
test_class.var_name: registry
test_class.declarator: itemFactory
test_class.modifier: private
test_class.original_string: private CoreItemFactory itemFactory;
test_class.type: CoreItemFactory
test_class.var_name: itemFactory
test_class.declarator: item
test_class.modifier: private
test_class.original_string: private GenericItem item;
test_class.type: GenericItem
test_class.var_name: item
test_class.file: bundles/org.openhab.core.persistence/src/test/java/org/openhab/core/persistence/extensions/PersistenceExtensionsTest.java
test_class.identifier: PersistenceExtensionsTest
test_case.body: @Test
      public void testMaximumSince() {
          item.setState(new QuantityType<>(1, SIUnits.CELSIUS));
          HistoricItem historicItem = PersistenceExtensions.maximumSince(item,
                  ZonedDateTime.of(2012, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()), TestPersistenceService.ID);
          assertNotNull(historicItem);
          assertEquals("1", historicItem.getState().toString());
  
          item.setState(new DecimalType(1));
          historicItem = PersistenceExtensions.maximumSince(item,
                  ZonedDateTime.of(2012, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()), TestPersistenceService.ID);
          assertNotNull(historicItem);
          assertEquals("1", historicItem.getState().toString());
  
          historicItem = PersistenceExtensions.maximumSince(item,
                  ZonedDateTime.of(2005, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()), TestPersistenceService.ID);
          assertNotNull(historicItem);
          assertEquals("2012", historicItem.getState().toString());
          assertEquals(ZonedDateTime.of(2012, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()), historicItem.getTimestamp());
  
          // default persistence service
          historicItem = PersistenceExtensions.maximumSince(item,
                  ZonedDateTime.of(2005, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()));
          assertNotNull(historicItem);
          assertEquals("1", historicItem.getState().toString());
      }
test_case.class_method_signature: PersistenceExtensionsTest.testMaximumSince()
test_case.full_signature: @Test public void testMaximumSince()
test_case.identifier: testMaximumSince
test_case.invocations: setState maximumSince of systemDefault assertNotNull assertEquals toString getState setState maximumSince of systemDefault assertNotNull assertEquals toString getState maximumSince of systemDefault assertNotNull assertEquals toString getState assertEquals of systemDefault getTimestamp maximumSince of systemDefault assertNotNull assertEquals toString getState
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMaximumSince()
focal_class.declarator: BIG_DECIMAL_TWO = BigDecimal.valueOf(2)
focal_class.modifier: private static final
focal_class.original_string: private static final BigDecimal BIG_DECIMAL_TWO = BigDecimal.valueOf(2);
focal_class.type: BigDecimal
focal_class.var_name: BIG_DECIMAL_TWO
focal_class.declarator: registry
focal_class.modifier: private static
focal_class.original_string: private static PersistenceServiceRegistry registry;
focal_class.type: PersistenceServiceRegistry
focal_class.var_name: registry
focal_class.file: bundles/org.openhab.core.persistence/src/main/java/org/openhab/core/persistence/extensions/PersistenceExtensions.java
focal_class.identifier: PersistenceExtensions
focal_class.class_method_signature: PersistenceExtensions.PersistenceExtensions(@Reference PersistenceServiceRegistry registry)
focal_class.full_signature: @Activate public  PersistenceExtensions(@Reference PersistenceServiceRegistry registry)
focal_class.identifier: PersistenceExtensions
focal_class.modifiers: @Activate public
focal_class.parameters: (@Reference PersistenceServiceRegistry registry)
focal_class.signature:  PersistenceExtensions(@Reference PersistenceServiceRegistry registry)
focal_class.class_method_signature: PersistenceExtensions.getService(String serviceId)
focal_class.full_signature: private static PersistenceService getService(String serviceId)
focal_class.identifier: getService
focal_class.modifiers: private static
focal_class.parameters: (String serviceId)
focal_class.return: PersistenceService
focal_class.signature: PersistenceService getService(String serviceId)
focal_class.class_method_signature: PersistenceExtensions.getDefaultServiceId()
focal_class.full_signature: private static String getDefaultServiceId()
focal_class.identifier: getDefaultServiceId
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDefaultServiceId()
focal_class.class_method_signature: PersistenceExtensions.persist(Item item, String serviceId)
focal_class.full_signature: public static void persist(Item item, String serviceId)
focal_class.identifier: persist
focal_class.modifiers: public static
focal_class.parameters: (Item item, String serviceId)
focal_class.return: void
focal_class.signature: void persist(Item item, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.persist(Item item)
focal_class.full_signature: public static void persist(Item item)
focal_class.identifier: persist
focal_class.modifiers: public static
focal_class.parameters: (Item item)
focal_class.return: void
focal_class.signature: void persist(Item item)
focal_class.class_method_signature: PersistenceExtensions.historicState(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static HistoricItem historicState(Item item, ZonedDateTime timestamp)
focal_class.identifier: historicState
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem historicState(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.historicState(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static HistoricItem historicState(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: historicState
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem historicState(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.changedSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static Boolean changedSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: changedSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: Boolean
focal_class.signature: Boolean changedSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.changedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static Boolean changedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: changedSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: Boolean
focal_class.signature: Boolean changedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.updatedSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static Boolean updatedSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: updatedSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: Boolean
focal_class.signature: Boolean updatedSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.updatedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static Boolean updatedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: updatedSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: Boolean
focal_class.signature: Boolean updatedSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.maximumSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static HistoricItem maximumSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: maximumSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem maximumSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.maximumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static HistoricItem maximumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: maximumSince
focal_class.modifiers: public static
focal_class.parameters: (final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem maximumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.minimumSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static HistoricItem minimumSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: minimumSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem minimumSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.minimumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static HistoricItem minimumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: minimumSince
focal_class.modifiers: public static
focal_class.parameters: (final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem minimumSince(final Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType varianceSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: varianceSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType varianceSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType varianceSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: varianceSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType varianceSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType deviationSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: deviationSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType deviationSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType deviationSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: deviationSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType deviationSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType averageSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: averageSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType averageSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType averageSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: averageSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType averageSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.internalAverageSince(Item item, Iterator<HistoricItem> it)
focal_class.full_signature: private static DecimalType internalAverageSince(Item item, Iterator<HistoricItem> it)
focal_class.identifier: internalAverageSince
focal_class.modifiers: private static
focal_class.parameters: (Item item, Iterator<HistoricItem> it)
focal_class.return: DecimalType
focal_class.signature: DecimalType internalAverageSince(Item item, Iterator<HistoricItem> it)
focal_class.class_method_signature: PersistenceExtensions.sumSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType sumSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: sumSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType sumSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.sumSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType sumSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: sumSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType sumSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.getAllStatesSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: private static Iterable<HistoricItem> getAllStatesSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: getAllStatesSince
focal_class.modifiers: private static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: Iterable<HistoricItem>
focal_class.signature: Iterable<HistoricItem> getAllStatesSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.lastUpdate(Item item)
focal_class.full_signature: public static ZonedDateTime lastUpdate(Item item)
focal_class.identifier: lastUpdate
focal_class.modifiers: public static
focal_class.parameters: (Item item)
focal_class.return: ZonedDateTime
focal_class.signature: ZonedDateTime lastUpdate(Item item)
focal_class.class_method_signature: PersistenceExtensions.lastUpdate(Item item, String serviceId)
focal_class.full_signature: public static ZonedDateTime lastUpdate(Item item, String serviceId)
focal_class.identifier: lastUpdate
focal_class.modifiers: public static
focal_class.parameters: (Item item, String serviceId)
focal_class.return: ZonedDateTime
focal_class.signature: ZonedDateTime lastUpdate(Item item, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.deltaSince(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType deltaSince(Item item, ZonedDateTime timestamp)
focal_class.identifier: deltaSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType deltaSince(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.deltaSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType deltaSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: deltaSince
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType deltaSince(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.evolutionRate(Item item, ZonedDateTime timestamp)
focal_class.full_signature: public static DecimalType evolutionRate(Item item, ZonedDateTime timestamp)
focal_class.identifier: evolutionRate
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp)
focal_class.return: DecimalType
focal_class.signature: DecimalType evolutionRate(Item item, ZonedDateTime timestamp)
focal_class.class_method_signature: PersistenceExtensions.evolutionRate(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.full_signature: public static DecimalType evolutionRate(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.identifier: evolutionRate
focal_class.modifiers: public static
focal_class.parameters: (Item item, ZonedDateTime timestamp, String serviceId)
focal_class.return: DecimalType
focal_class.signature: DecimalType evolutionRate(Item item, ZonedDateTime timestamp, String serviceId)
focal_class.class_method_signature: PersistenceExtensions.previousState(Item item)
focal_class.full_signature: public static HistoricItem previousState(Item item)
focal_class.identifier: previousState
focal_class.modifiers: public static
focal_class.parameters: (Item item)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem previousState(Item item)
focal_class.class_method_signature: PersistenceExtensions.previousState(Item item, boolean skipEqual)
focal_class.full_signature: public static HistoricItem previousState(Item item, boolean skipEqual)
focal_class.identifier: previousState
focal_class.modifiers: public static
focal_class.parameters: (Item item, boolean skipEqual)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem previousState(Item item, boolean skipEqual)
focal_class.class_method_signature: PersistenceExtensions.previousState(Item item, boolean skipEqual, String serviceId)
focal_class.full_signature: public static HistoricItem previousState(Item item, boolean skipEqual, String serviceId)
focal_class.identifier: previousState
focal_class.modifiers: public static
focal_class.parameters: (Item item, boolean skipEqual, String serviceId)
focal_class.return: HistoricItem
focal_class.signature: HistoricItem previousState(Item item, boolean skipEqual, String serviceId)
focal_method.body: public static HistoricItem maximumSince(Item item, ZonedDateTime timestamp) {
          return maximumSince(item, timestamp, getDefaultServiceId());
      }
focal_method.class_method_signature: PersistenceExtensions.maximumSince(Item item, ZonedDateTime timestamp)
focal_method.full_signature: public static HistoricItem maximumSince(Item item, ZonedDateTime timestamp)
focal_method.identifier: maximumSince
focal_method.invocations: maximumSince getDefaultServiceId
focal_method.modifiers: public static
focal_method.parameters: (Item item, ZonedDateTime timestamp)
focal_method.return: HistoricItem
focal_method.signature: HistoricItem maximumSince(Item item, ZonedDateTime timestamp)