Class Mappings.SurjectionWithInverse

    • Constructor Detail

      • SurjectionWithInverse

        SurjectionWithInverse​(int sourceCount,
                              int targetCount)
    • Method Detail

      • set

        public void set​(int source,
                        int target)
        Creates a mapping between a source and a target.

        It is an error to map a target to a source which already has a target.

        If you map a source to a target which already has a source, the old source becomes an orphan.

        Specified by:
        set in interface Mappings.TargetMapping
        Overrides:
        set in class Mappings.PartialMapping
        Parameters:
        source - source
        target - target