public class RelationSorter extends Object
Modifier and Type | Class and Description |
---|---|
private static interface |
RelationSorter.AdditionalSorter |
private static class |
RelationSorter.AssociatedStreetRoleAddressHouseSorter
Class that sorts the
address and house members of
type=associatedStreet and type=street relations. |
private static class |
RelationSorter.AssociatedStreetRoleStreetSorter
Class that sorts the
street members of
type=associatedStreet and type=street relations. |
Modifier and Type | Field and Description |
---|---|
private static Collection<RelationSorter.AdditionalSorter> |
additionalSorters |
Constructor and Description |
---|
RelationSorter() |
Modifier and Type | Method and Description |
---|---|
List<RelationMember> |
sortMembers(List<RelationMember> relationMembers)
Sort a collection of relation members by the way they are linked.
|
static List<RelationMember> |
sortMembersByConnectivity(List<RelationMember> defaultMembers) |
private static final Collection<RelationSorter.AdditionalSorter> additionalSorters
public RelationSorter()
public List<RelationMember> sortMembers(List<RelationMember> relationMembers)
relationMembers
- collection of relation memberspublic static List<RelationMember> sortMembersByConnectivity(List<RelationMember> defaultMembers)