src/main/java/seedu/planner/model/ModelManager.java
private void addAccommodationMapping(Accommodation acc) {
        if (acc.getContact().isPresent()) {
            Contact contact = acc.getContact().get();
            if (!hasContact(contact)) {
                addContact(contact);
            }
            contactAccommodationMap.put(contact, acc);
        }
    }
/**
     * Creates a mapping between an {@code Accommodation} and it's {@code Contact}, if it possesses one.
     */
Creates a mapping between an  Accommodation and it's  Contact, if it possesses one.
Creates a mapping between an Accommodation and it ' s Contact if it possesses one .
private void addAccommodationMapping(Accommodation acc) {
        if (acc.getContact().isPresent()) {
            Contact contact = acc.getContact().get();
            if (!hasContact(contact)) {
                addContact(contact);
            }
            contactAccommodationMap.put(contact, acc);
        }
    }
private void addAccommodationMapping ( Accommodation acc ) { if ( acc . getContact ( ) . isPresent ( ) ) { Contact contact = acc . getContact ( ) . get ( ) ; if ( ! hasContact ( contact ) ) { addContact ( contact ) ; } contactAccommodationMap . put ( contact , acc ) ; } }
Creates a mapping between an {@code Accommodation} and it's {@code Contact}, if it possesses one.
Creates a mapping between an { @code Accommodation } and it ' s { @code Contact } if it possesses one .