Klasse LegacyDurationParser

java.lang.Object
de.delinkedde.areashopreborn.importer.legacy.LegacyDurationParser

public final class LegacyDurationParser extends Object
Conservatively converts unambiguous legacy AreaShop duration values.
  • Konstruktordetails

    • LegacyDurationParser

      public LegacyDurationParser()
      Creates a stateless duration parser.
  • Methodendetails

    • parse

      public Duration parse(String raw) throws LegacyImportException
      Parses numeric legacy minutes, ISO-8601, or an explicit supported unit.
      Parameter:
      raw - stored legacy scalar
      Gibt zurück:
      positive duration of at least one minute
      Löst aus:
      LegacyImportException - when the syntax or unit is ambiguous