app/models/Destination.java
public void initTravellerType() {
        this.travellerTypes = new HashMap<>();

        if (travellerTypesStringDest != null) {
            int i = 1;
            for (String travellerTypesString : (travellerTypesStringDest.split(","))) {
                TravellerType travellerType = new TravellerType(i, travellerTypesString);
                this.travellerTypes.put(travellerType.getTravellerTypeId(), travellerType);
                i++;
            }
        }
    }
/**
     * A function to turn the destination class created by the create destination form. It is required to turn the
     * , separated strings into maps.
     */
A function to turn the destination class created by the create destination form. It is required to turn the
, separated strings into maps.
A function to turn the destination class created by the create destination form . It is required to turn the separated strings into maps .
public void initTravellerType() {
        this.travellerTypes = new HashMap<>();
        if (travellerTypesStringDest != null) {
            int i = 1;
            for (String travellerTypesString : (travellerTypesStringDest.split(","))) {
                TravellerType travellerType = new TravellerType(i, travellerTypesString);
                this.travellerTypes.put(travellerType.getTravellerTypeId(), travellerType);
                i++;
            }
        }
    }
public void initTravellerType ( ) { this . travellerTypes = new HashMap < > ( ) ; if ( travellerTypesStringDest != null ) { int i = 1 ; for ( String travellerTypesString : ( travellerTypesStringDest . split ( "," ) ) ) { TravellerType travellerType = new TravellerType ( i , travellerTypesString ) ; this . travellerTypes . put ( travellerType . getTravellerTypeId ( ) , travellerType ) ; i ++ ; } } }
A function to turn the destination class created by the create destination form.
A function to turn the destination class created by the create destination form .