Package org.entur.netex.support
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
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)
-
-