Package org.entur.netex.support
Class NetexVersionHelper
java.lang.Object
org.entur.netex.support.NetexVersionHelper
Utility class to help working with versioned NeTEx element.
This class implements Norwegian profile specific rules.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.rutebanken.netex.model.EntityInVersionStructure>
TlatestVersionedElementIn(Collection<T> list) Return the element with the latest (maximum) version for a givenlistof elements.static <T extends org.rutebanken.netex.model.EntityInVersionStructure>
TversionOfElementIn(Collection<T> list, String version)
-
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 givenlistof elements. If no elements exist in the collectionnullis returned. -
versionOfElementIn
public static <T extends org.rutebanken.netex.model.EntityInVersionStructure> T versionOfElementIn(Collection<T> list, String version)
-