class FootFlagEncoder extends AbstractFlagEncoder {

    int handlePriority(ReaderWay way, Integer priorityFromRelation) {
        TreeMap<Double, Integer> weightToPrioMap = new TreeMap<>();
        if (priorityFromRelation == null)
            weightToPrioMap.put(0d, UNCHANGED.getValue());
        else
            weightToPrioMap.put(110d, priorityFromRelation);

        collect(way, weightToPrioMap);

        // pick priority with biggest order value
        return weightToPrioMap.lastEntry().getValue();
    }

    public  FootFlagEncoder();
    public  FootFlagEncoder(PMap properties);
    public  FootFlagEncoder(String propertiesStr);
    public  FootFlagEncoder(int speedBits, double speedFactor);

}