Class NetexVersionHelper

java.lang.Object
org.entur.netex.support.NetexVersionHelper

public class NetexVersionHelper extends Object
Utility class to help working with versioned NeTEx element.

This class implements Norwegian profile specific rules.

  • Method Details

    • latestVersionedElementIn

      public static <T extends org.rutebanken.netex.model.EntityInVersionStructure> T latestVersionedElementIn(Collection<T> list)
      Return the element with the latest (maximum) version for a given list of elements. If no elements exist in the collection null is returned.
    • versionOfElementIn

      public static <T extends org.rutebanken.netex.model.EntityInVersionStructure> T versionOfElementIn(Collection<T> list, String version)